File size: 946B
<?php
$qwer = mysql_query("SELECT * FROM `news` where `type`='news' order by time desc ");
$mne = mysql_fetch_array($qwer);
if($qwer1 = mysql_query("SELECT * FROM `news` where `type`='komm' and `idnews`='".intval($mne['id'])."' "))
{
$mne1 = mysql_num_rows($qwer1);
}
echo "<div style='text-align:center;'><div class='contur'><div class='header'><span style='color:#c00000;text-decoration:blink;'>
Пoследние новости сайта:</span>
<div style='text-align: left'><b>".date("d/m/Y", $mne['time'])."</b> ".$mne['zagol']."<br/><small>
".str_replace($sm1,$sm2,$mne['full'])."<br/>
<a href='news/fullnews.php?id=".$mne['id']."'>Мнения[".$mne1."]</a> |
<a href='news/'>Все новости>></a></small></div></div></div></div>";
?>