Deleting from MYSQL Database after 7 days?
Hey there,
I have created a shopping cart. When someone adds items to the cart it logs their order id and the time(using the time() function) they added the items.
The problem is when someone adds items to their cart and does not check out, the order is left sitting in the database... Over time this will be a lot of orders cloggin the database with out of date data...
How do I check the MYSQL database for entries over 7 days old and then delete them?
Thanks
Ben
|