Anybody have any idea why this query isn’t working?
$result = mysql_query("SELECT * FROM Events ORDER BY ID ASC LIMIT 0, 10");
I want the data to order backwards, from the highest value ID all the way to 1.
But it doesn’t do that. It just orders them 1,2,3,4,5
Any help is greatly appreciated.
You are sorting in
ASCending order when you want to sort inDESCending order. Try the following instead:If per chance, you want the 10 items with the lowest
ID‘s but want them in descending order, then you could use the following: