lostprophetpunk Posted August 8, 2008 Share Posted August 8, 2008 I am creating a comment system for my website. I have set up the following fields in my database... id name email comment I have the form set up. How would I display comments in order from the oldest first? I get the reast of it but I do not know how to display them in order using the id field. Link to comment https://forums.phpfreaks.com/topic/118747-comment-system/ Share on other sites More sharing options...
MasterACE14 Posted August 8, 2008 Share Posted August 8, 2008 mysql_query("SELECT * FROM comments_table ORDER BY id DESC"); the above orders results by ID and Descending order. Regards ACE Link to comment https://forums.phpfreaks.com/topic/118747-comment-system/#findComment-611386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.