I created a script that register for news letter. but before accepting this processes the registered mail must be validate. so ... after the registration , the scrip insert data into row for the news_letter
thable with this value: reg_mail
,val_code
,reg_time
and ...
Until now , this process is done after registration. The script creates a random code and get NOW()
time. It then saves in database.
After that if someone else go to reg
page, the script sends a query to database and deletes rows that passed for example 5 hours.
I want to change this process and tell mysql to automatically delete rows that pass specific time without send any query to database.
Is it possible? If so, how can I do that?