0.8.1a
[gfh.git] / lowest20.php
blob8d235c011637860ad07a006a4bf794c80024c5a4
1 <?php include ("config.php");
2 $sql = "SELECT * FROM users WHERE cookies<='0' ORDER BY cookies ASC";
3 $result = mysql_query($sql);
4 echo "<table width=100%><tr><td><b>Username</td><td><b>Aura</td></tr>";
5 $num = 0;
6 while ($myrow = mysql_fetch_array($result))
8 if ($num < 20)
10 $num = $num +1;
11 echo "<tr><td>".$num.". ".$myrow["username"]."</td><td>".$myrow["cookies"]."</td></tr>";
14 echo "</table>";