Reputation: 67
I have a user who will input the date for the next event. It is saved in the format yyyy-mm-dd hh:mm:ss (eg: 2013-06-09 00:00:00) in a MySQL database. How can I write a cron job that sends a notification to the user 3 days in advance about an upcoming event?
Upvotes: 0
Views: 1228
Reputation: 43298
You can achieve this in two steps:
Now that you know the steps, please try to figure out the implementation yourself.
Upvotes: 2