Размер файла: 1.02Kb
<?php
session_start();
$title="Рейтинг\n";
include ("../header.php");
echo $div["ten"];
if(empty($startan)) $startan = 0;
$startan=intval($startan);
if($startan<0) $startan=0; $num_msgs_an=20;
$arr = mysql_query("select * from `uzvers`");
$qi = mysql_query("select * from `uzvers` order by `allmonth` desc limit $startan,$num_msgs_an;;");
if (mysql_affected_rows()==0)
{
echo "Нет сайтов!";
}
else
{
while($row=mysql_fetch_array($qi))
{
echo "".$row['id']." | ".$row['wm']." |
<a href=\"".$row['site']."\">".$row['site']."</a> ".$row['allmonth']."
}
}
$i = @mysql_num_rows($arr);
if($startan!=0)
echo "<a href=\"top.php?op=allsite&".session_name()."=".session_id()."&startan=".($startan-$num_msgs_an)."\">".htmlspecialchars("Назад")."</a>] ";
if($i>$startan+$num_msgs_an)
echo "[<a href=\"top.php?op=allsite&".session_name()."=".session_id()."&startan=".($startan+$num_msgs_an)."\">".htmlspecialchars("Вперед")."</a>";
?>