just-gal Posted August 14, 2009 Share Posted August 14, 2009 hi , I have web pages that retrieve their content from the stored data in mysql table the problem is I wanted to start retrieve it upside down so the last row in the table will appear in the first row in the page I've tried to use for loop but it didn't work Link to comment Share on other sites More sharing options...
just-gal Posted August 14, 2009 Author Share Posted August 14, 2009 I found the solution $sql = mysql_query("SELECT * FROM `tablename` ORDER BY `id` DESC LIMIT 10") Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.