Hello I want to make a timer of 1 minute and want to execute a mysql query after that.
Can I do this in PHP, without using any javascripts? If yes, how would I do it?
Hello I want to make a timer of 1 minute and want to execute a mysql query after that.
Can I do this in PHP, without using any javascripts? If yes, how would I do it?
It'll be taxing in performance, and a very inefficient way of accomplishing the two-hour restriction on the password recovery check from your other question, which I'm assuming is why you asked. Add a timestamp column to the table (PHP time()
function), and when you query the table for password recovery later, if the timestamp column (which will be a time in seconds) is 7200 (the number of seconds in two hours) less than the current timestamp, delete the row. If the difference is less than 7200 seconds, perform the recovery.