Auto Delete Data Using Current date In PHP/MySQL

Language
This code will help you on how to create a system that automatically delete data when the expiry date was arrive. The required input to fully execute auto delete is the number of days to add in the current date, the formula to get the expiry date is current date plus the number of dates to be input. The feature of this code is, automatically delete data when the expiry date arrive. In this code also you will learn on to add days in a date. Leave comment if you have a question oh this code, happy coding and hope this code will help you. database name: deletebydate

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

This code is great, but It have problem about date. It's auto delete the field that match the current date, but the preview date not delete. (ie. the current date is 07-10-2012 , this system delete the date that equal 07-10-2012, but 07-09-2012 expired too it not delete). thank in advance!!!

thanks! =))

Add new comment