Page 1 of 1

Add record in DB after 1 min

Posted: Mon Aug 10, 2009 2:54 pm
by phpcoder
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

Re: Add record in DB after 1 min

Posted: Mon Aug 10, 2009 6:58 pm
by califdon
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.