Jump to content

Using date/time to manipulate database.


poleposters

Recommended Posts

Hi I want to create a script that deletes entries that are older than two weeks old.

 

Although I'm not sure how to structure queries relating to a date/time field.

 

My table is already set up to include a date/time field and works fine. I just don't know how to tell the database to delete records than are older than xx/xx/xx

Link to comment
https://forums.phpfreaks.com/topic/100604-using-datetime-to-manipulate-database/
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.