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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.