So here is the situation. In my db table i have a column called expire_date, where i put a certain date for each row.
So for example the expire date is 28-04-2012
I need a php code that will send a certain user a notice via email that the certain thing that expires on that date is 1 month from expiring. So if today is 28-03-2012, that means that there is only 1 moonth before that thing expires.
I didn’t make any code for this because i don’t know how to solve the -1 month.
First get the date in one month with php:
Then you can do a select:
And there you have an array with all the items who expire in less than one month.
If you want exactly the ones that expire in 1 month:
I hope this helps