Jump to content

pulling limited data from a table


lional

Recommended Posts

Hi all

I am writing data to a table based on date but I only want to show the last 5 dates. this I can do with the limit parameter. But if I want to pull the last 5 dates then I must say limit 5 dsc, but I want to view it from oldest date to the newest date. this is asc

 

How can this be achieved

Link to comment
https://forums.phpfreaks.com/topic/168919-pulling-limited-data-from-a-table/
Share on other sites

Archived

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

×
×
  • Create New...

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.