Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=25078
Postga havola
DjHuSo [843] [off]
Bekmurod, qayeriga masalan
echo'<div class="phdr">Yangiliklar</div>'; $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `news` WHERE `mod` = '1' and`time` <= '" . time() . "'"), 0); if ($total) { $noimg = 'noimg.jpg'; $i = 1; 1 => 'Yanvar', 2 => 'Fevral', 3 => 'Mart', 4 => 'Aprel', 5 => 'May', 6 => 'Iyun', 7 => 'Iyul', 8 => 'Avgust', 9 => 'Sentyabr', 10 => 'Oktyabr', 11 => 'Noyabr', 12 => 'Dekabr', ); $comm = mysql_result(mysql_query("SELECT COUNT(*) FROM `news_comm` WHERE `rasm_id` = '".$row['id']."';"), 0); echo ' <div class="menu"><a href="'.$home.'/news.php?act=info&id='.$row['id'].'"> <span style=" float: left; color: red;"> <b> '.functions::display_soat($row['time']).' </b> </span> <div style="margin-left: 40px;"> '.functions::checkout($row['nomi']).' <br> <span style="font-size: x-small; color: gray;">Ko\'rildi: '.$row['kordi'].' Fikirlar: '.$comm.' </span> </div> </div> </a>'; } /* <font style="color:#fff;"><b> '. date ('H:i', $row['time']+$sdvigclock*3600) .' </b></font></span> </b><a href="news.php?act=info&id='.$row['id'].'"> '. htmlentities($row['nomi'],ENT_QUOTES,'UTF-8').'</a><div align="right"> <font color="darkgray"><center> O`qildi: '.$row['views'].' — Fikrlar: '. mysql_result( mysql_query("SELECT COUNT(*) FROM `news_comm` WHERE `bolim`='$row[id]'"),0).'</font>'; echo'</center></div></div>'; */ } if (!$totls) echo '<div class="menu">Ro`yxat bo`sh</div>'; else echo'<div class=""><div class="busi_switcher "> <table width="100%"> <tbody><tr> <td class="menu"><a href="pages/topnews.php">TOP-10</a></td> <td class="menu"><a href="pages/all.php">Barchsini o\'qish »</a></td> </tr> </tbody></table> </div>';