natalieG Posted May 7, 2006 Share Posted May 7, 2006 How do set up a query so that on a date column which contains ther record date, the dataarrives last entry first?Thanks,Natalie; Link to comment https://forums.phpfreaks.com/topic/9271-order/ Share on other sites More sharing options...
AndyB Posted May 7, 2006 Share Posted May 7, 2006 Adjust to suit ... assuming that the actual dates are yyyy-mm-dd style:[code]$query = "SELECT * from tablename ORDER by datefieldname DESC";[/code]That should sort by [b]latest[/b] to [b]earliest[/b] date which is what I assume you wanted. Link to comment https://forums.phpfreaks.com/topic/9271-order/#findComment-34157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.