While executing a query with the mysql_query function, you may want to add a SQL command "ORDER by desc".
That will start from the latest entry and go up to the oldest.
An example query string would look like:
edit:
Here you can learn more about "ORDER BY"
http://dev.mysql.com/doc/refman/5.1/en/o...ation.html
That will start from the latest entry and go up to the oldest.
An example query string would look like:
Code:
SELECT * FROM `snippets` ORDER BY "time" desc
edit:
Here you can learn more about "ORDER BY"
http://dev.mysql.com/doc/refman/5.1/en/o...ation.html