Hi,
I need a script that checks if the entrie in the database is older then 12hours, if yes, then it deletes it!
my idear was to convert the date&time that was saved into the database and convert this into seconds and then do the same with the actual date&time.
example:
2004-03-25 12:40:00 (DEL)
2004-03-25 23:51:21 (KEEP)
2004-03-26 00:03:20 (NOW)
if the defrence is bigger then 43200sec. then "DELETE FROM $shop WHERE ..."
Or is there an better way?
Thx for helping...