Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=48687
Postga havola
RM_FANAT [1723] [off]
Mana bu kodni qayerida xatolik bor?
<?php
echo '<div class="phdr"><b>KUN MAVZULARI</b></div>';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_news` WHERE `refid`= 2"), 0);
$kmess ='3';
if ($total) {
$req = mysql_query("SELECT * FROM `cms_news` WHERE `refid`= 2 ORDER BY `time` DESC LIMIT ".$start.", ".$kmess);
while($trans_res= mysql_fetch_array($req)){
$comm= mysql_result( mysql_query("select count(*) from `cms_news_comments` where `refid` = '".$trans_res['id']."'"),0);
echo '<div class="menu"><span class="newsTime time bottom">'.(date('H:i ',$trans_res['time'])).'</span> – <a href="/news/index.php?act=view&id='.$trans_res['id'].'"><font color="#454545">'. htmlentities($trans_res['name'],ENT_QUOTES,'UTF-8').'</font></a> <a class="cm orang"> ' . $comm . '</a></div></div>';
++$i;
}
}
if ($total > $kmess) {
}
?>
<?php
echo '<div class="phdr"><b>KUN MAVZULARI</b></div>';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_news` WHERE `refid`= 2"), 0);
$kmess ='3';
if ($total) {
$req = mysql_query("SELECT * FROM `cms_news` WHERE `refid`= 2 ORDER BY `time` DESC LIMIT ".$start.", ".$kmess);
while($trans_res= mysql_fetch_array($req)){
$comm= mysql_result( mysql_query("select count(*) from `cms_news_comments` where `refid` = '".$trans_res['id']."'"),0);
echo '<div class="menu"><span class="newsTime time bottom">'.(date('H:i ',$trans_res['time'])).'</span> – <a href="/news/index.php?act=view&id='.$trans_res['id'].'"><font color="#454545">'. htmlentities($trans_res['name'],ENT_QUOTES,'UTF-8').'</font></a> <a class="cm orang"> ' . $comm . '</a></div></div>';
++$i;
}
}
if ($total > $kmess) {
}
?>