I have a basic write to and retrieve sql database php \"thing\" and I want to have the output in descending order. How do I do that?
Eg. last entry is shown first,
SELECT field_name FROM table_name ORDER BY id DESC
By default mysql Will show results in ascending order if you want to show them in reverse order put ORDER BY field_name DESC
ORDER BY field_name DESC
You can use id or date as the field name