This is part of a ranking script. It is supposed to take the top 3 people with the largest amount of money and display them to flash.
It was working fine until somone got another digit added to their cash amount.
It shows up as...
1st = somename - $9000
2nd = somename - $8000
3rd = somename - $10000
Here is the php code.
$result = mysql_query("SELECT * FROM $table ORDER BY money DESC");
if ($myrow = mysql_fetch_array($result)) {
do {
$count = $count + 1;
echo "&Name".$count."=".$myrow["name"]."&S".$count."=".$myrow["money"];
}while ($count<3 AND $myrow=mysql_fetch_array($result));
}
else {
}
You can see for yourself...
.Racing Game
Login as a guest and look at the records