Jump to content

Deleting database after 24 hours


graham23s

Recommended Posts

Hi Guys,

 

I am going to setup a cron job that deletes certain database tables after 24 hours have lapsed, i save the date in mysql as: 2009-12-09 23:43:03.

 

i'm not to seure how to write it, so the cron job deletes X if 2009-12-09 23:43:03 > 24 hours.

 

any help would be appreciated.

 

thanks guys

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/184571-deleting-database-after-24-hours/
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.