Mencarta Posted January 17, 2010 Share Posted January 17, 2010 I have some entries that have the column id. How would I search for it so it echos the message with the greatest id first and the least id last? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 17, 2010 Share Posted January 17, 2010 You would just order by that column in the SQL, you can use ASC or DESC to say which direction it should order. If the values are in an array in PHP then you can use one of the sorting functions:http://www.php.net/manual/en/array.sorting.php Link to comment Share on other sites More sharing options...
Mencarta Posted January 17, 2010 Author Share Posted January 17, 2010 Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.