Jump to content

sorting by date in a table


dannybrazil

Recommended Posts

Hello

i wanted to know how can i create something like in this site :

http://saopaulo.en.craigslist.org/roo/

 

basicaly i want to show <th> with the DATE posted and all the posts that been added to the site that day

and so on....

 

i know it is complicated but maybe someone can direct me

 

thanks alot

 

Link to comment
https://forums.phpfreaks.com/topic/97650-sorting-by-date-in-a-table/
Share on other sites

Over all, the concept is easy.. what you should do or in my opinion atleast.. is add atleast one more row to your table that stores your posts.. and have a your code insert a timestamp http://us2.php.net/time (php.net manual for basic info on it)

 

then from there its all Dependant on the coding of your choice of how to display the info from the file that pulls it and displays it from the database.

 

Note any and all current posts without a timestamp, this wont work for, unless you insert manually a time stamp..

 

 

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.