$total) $page = $total; $start = $page * 50 - 50; $to_get=" «« ".$to_get.($page-1)."/> « "; if ($page != $total) $nextpage = $to_get.($page+1)."/> » ".$to_get.$total."/> »» "; if($page - 5 > 0) $page5left = $to_get.($page - 5)."/>".($page - 5).""; if($page - 4 > 0) $page4left = $to_get.($page - 4)."/>".($page - 4).""; if($page - 3 > 0) $page3left = $to_get.($page - 3)."/>".($page - 3).""; if($page - 2 > 0) $page2left = $to_get.($page - 2)."/>".($page - 2).""; if($page - 1 > 0) $page1left = $to_get.($page - 1)."/>".($page - 1).""; if($page + 5 <= $total) $page5right = $to_get.($page + 5)."/>".($page + 5).""; if($page + 4 <= $total) $page4right = $to_get.($page + 4)."/>".($page + 4).""; if($page + 3 <= $total) $page3right = $to_get.($page + 3)."/>".($page + 3).""; if($page + 2 <= $total) $page2right = $to_get.($page + 2)."/>".($page + 2).""; if($page + 1 <= $total) $page1right = $to_get.($page + 1)."/>".($page + 1).""; $query = mysql_query("SELECT * FROM jb_board WHERE old_mess = 'old' ORDER by date_add DESC, time_add DESC LIMIT $start, 50"); if ($count_rows = mysql_num_rows ($query)) { while($last = mysql_fetch_array($query)) echo "
  • ".htmlspecialchars($last['title'])."
  • "; } echo "
    "; } include("../cont.php"); $path = "../stat/"; // путь до корневого каталога $title="Для роботов-".((@$user_title)?$user_title:$c['user_title']); include($path."count.php"); // подключение файла ?>