0;"); $usm = mysql_fetch_array($userall); $num = $usm["num"]; if(!isset($s))$s=0; $mx=round(($num/10)+0.45); if($s>$mx)$s=$mx; if($s==0)$s=1; $ot=(($s-1)*10)+1; $do=$s*10; if($do>$num)$do=$num; $o=$ot-1; $n=$ot; if($do==0)$n=$o; $r = mysql_query ("select id,user,voteses from users order by voteses desc limit $o,$do"); for ($i=$ot;$i<=$do;$i++){ $arr = mysql_fetch_array($r); $login=$arr['user']; $usid=$arr['id']; $voteses=$arr['voteses']; echo ($i).") ".$login."|Ses: ".$arr['voteses']."
"; } ?>