Файл: test.masteram.us/sys/inc/news_main.php
Строк: 31
<?
$q=mysql_query("SELECT * FROM `news` WHERE `main_time` > '".time()."' ORDER BY `id` DESC LIMIT 1");
if (mysql_num_rows($q)==1 && !$set['web'])
{
$news = mysql_fetch_assoc($q);
//echo "<table class='post'>n";
//echo '<tr><td class="icon14">';
//echo '</td><td class="anputg">';
echo "</br>» <b>$news[title]</b>n";
echo " <a href='/news/komm.php?id=$news[id]'><font color='red'>+ ".mysql_result(mysql_query("SELECT COUNT(*) FROM `news_komm` WHERE `id_news` = '$news[id]'"),0)."</a></font><br/> n";
//echo "<font color='#afb0a3'>".vremja($news['time'])."</font><br/>n";
//echo '</td></tr>';
//echo "</table>n";
echo "<a href='/news/'>Просмотр »</a><br />n";
if ($news['link']!=NULL)echo "<a href='".htmlentities($news['link'], ENT_QUOTES, 'UTF-8')."'>Подробности..</a><br />n";
}
?>