wrote a stats script recently and its got to 550ish hits and takin a while to load so trying to spread it across multiple pages got it to do it with this script fine but it puts the page numbers backwards.
script here
how would i get the numbers to order 1 2 3 4 rather than 4 3 2 1PHP Code:
$page = $_GET['page'];
$limit= "20";
$action = $_GET['action'];
$select = "SELECT * from visitors";
$result = mysql_query($select);
$num = mysql_num_rows($result);
$num = $num / 30;
$num = ceil($num);
$start = (($page - 1) * ($limit) + 1);
echo "<b>Page:</b>";
while ( $num >= 1) {
echo <<<END
<a href="?action=$action&page=$num">$num</a>
END;
$num--;
}