iamcameron
New Member
- Messages
- 18
- Reaction score
- 0
- Points
- 0
Hello, My name is Cameron, I have searched the internet for a solution, but i can only find how to sort a mysql Select command when running the SQL command.
I need to reverse a mysql result of 20 rows but i don't know how i would do it, Here is my current SQL command
This selects the last 20 rows in the table_name table starting from the last
I need to reverse the result so the last row select is now first, but i dont know how i could do this, Any Ideas?
~~Thanks, Cameron
I need to reverse a mysql result of 20 rows but i don't know how i would do it, Here is my current SQL command
PHP:
$select=mysql_query("SELECT * FROM table_name ORDER BY id DESC LIMIT 20");
I need to reverse the result so the last row select is now first, but i dont know how i could do this, Any Ideas?
~~Thanks, Cameron