Jump to content

Archived

This topic is now archived and is closed to further replies.

natalieG

ORDER

Recommended Posts

How do set up a query so that on a date column which contains ther record date, the data
arrives last entry first?

Thanks,

Natalie;

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.