Jump to content

archiving by timestamp


JKG

Recommended Posts

any one know of any scripts to archive news items by timestamp?

google searches just show tonnes of news archives.. not what i want!

 

obviously using php, all news items have a timestamp, how would i go about this? very open ended question but ANY help would really be appreciated.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/247777-archiving-by-timestamp/
Share on other sites

then you can use something like:

EXTRACT (MONTH from `date`) in your mysql query.

check out other options, depending on the type of field you're using (INT with unix timestamp, or mysql timestamp) here: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_extract

 

hope this helps

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.