Hi,
I have a php page where user can solve the puzzle, I want to track the time user spents on solving the puzzle. I wan to add tha data (increment) user time after every 1 mins, so if user is on the page trying to solve puzzle the function should trigger after every 1 min and update user time in db. Any help.
Thanks
Add record in DB after 1 min
Moderator: General Moderators
Re: Add record in DB after 1 min
You don't want to repeatedly update the database when nothing happens. Store the timestamp when the user starts, then store the timestamp when the user finishes.