the code below will diplay the following:
1 john
2 dave
3 mark
i want it to start from the least like this
3 mark
2 dave
1 john
1 john
2 dave
3 mark
i want it to start from the least like this
3 mark
2 dave
1 john
Code:
$result = mysql_query("SELECT * FROM users") or die(mysql_error());
$count = 0;
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)){
$num = $line[id];
$person = $line[user];
echo "$num $person";
$count++;
}
Comment