View file toptop.php

File size: 1.13Kb
<?
session_start();
$title="Рейтинг Юзеров\n";
include ("header.php");
echo $div["header"];
echo "<b>Рейтинг  участников</b>";
echo $div["end"];
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 "id ".$row['id']." - ".$row['allmonth']." y.e.<br/>";
}
}
$i = @mysql_num_rows($arr);
if($startan!=0)
echo "<a href=\"toptop.php?".session_name()."=".session_id()."&amp;startan=".($startan-$num_msgs_an)."\">".htmlspecialchars("<<--")."</a>] ";
if($i>$startan+$num_msgs_an)
echo "[<a href=\"toptop.php?".session_name()."=".session_id()."&amp;startan=".($startan+$num_msgs_an)."\">".htmlspecialchars("-->>")."</a>";;
echo "<br/>#";echo "<a href=\"index.php?".session_name()."=".session_id()."\">На главную</a><br/>";
echo $div["end"];
include ("footer.php");
?>