Hi guys,
I'm trying to sort the scores from big to smaller numbers.
ie. 100..80..50..30..10
$query = "SELECT username, scores FROM gameXE ORDER BY `scores` DESC LIMIT 0, 5";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
list($player, $scores) = $row;
echo $player. ' [' .$scores. '] ';
}
output: userA[80] userX[50] userB[30] userG[20] userR[100]
it suppose to sort, 100......20, but somehow the sorting is messedup..
Do u guys have any clue whats wrong here? pls lend me a hand.. 🙂
TIA