Ok, I have a php script that sends random code to the email address that the user entered.
I need to do this after 2 weeks, when the user receives a reminder to the same email address. This should happen only once.
I created a database table in which I store the user's email address and the date they were added.
How can I write a script so that after 2 weeks the user will be reminded by email.
I know that I need to use cron Job, my setup looks like this: 
As I understand it, mailform.php will be used every day at 23 oโclock, right? And I need to have cron Job use the script every day to check if the user has gone 2 weeks or not.
My database table looks like this: 
Everything is in order, I just donโt know how to check if two weeks have passed.
user1816133
source share