Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=81975
Postga havola
TimX [613] [off]
Shu kodda qanaqa xato bor?
<?php echo'<div class="phdr"><b>So`nggi yangiliklar</b></div>'; if ($total) { $nechta = mysql_result(mysql_query("SELECT COUNT(*) FROM `news` WHERE `mod` = '1' AND `bolim`= '".$row['id']."';"), 0); $new = mysql_result(mysql_query("SELECT COUNT(*) FROM `news` WHERE `mod` = '1' AND `bolim` = '".$row['id']."' AND `time` > '".(time() - (86400))."';"), 0); echo '<a href="'.$home.'/news.php?act=boliminfo&id='.$row['id'].'"> <div class="menu"> <img src="'.$home.'/images/green.png" style="margin-bottom: -3px;" width="10"> <span style="font-size: x-small; color: #555; float: right;" class="soni"> '.$nechta . ($new > 0 ? '/<font color="red">+'.$new.'</font>' : '').' </span> '.$row['nomi'].' </div> </a>'; } if ($total > $kmess) { echo '<div class="menu"> <center> <span class="gray"> ...::: </span> '.functions::display_pagination('news.php?', $start, $total, $kmess).' <span class="gray"> :::... </span> </center> </div>'; } } else { echo '<div class="menu"> <p> <center> Hozirda bironta ham yangilik yo\'q! </center> </p> </div>'; } if ($rights > 8) { echo '<div class="menu"> <p> <a href="'.$home.'/news.php?act=bolim" class="qopqora"> Bo\'lim ochish </a> </p> </div>'; } echo '</div>'; } ?>