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; Quote Link to comment 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. 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.