I have a countdown.In my educational website,the user has two hours to make a laboratory.
1. I want to display PHP dynamically countdown like (02:00:00) after 1 second (01:59:59),etc. I found only JQuery Countdown (with time expiration action) but it doesn't agree point 2.
2. In every second,I have to update table (ex: time_remaining field) with countdown value. Why this ? There are situations when an user/student solve some equations and the Internet connection is broken or the computer is shutting down unexpected, so the student could reload page but from last state countdown. Or, the student could make a pause and replay the laboratory when he wants.
3. After time expiration, I want to save results in database (I think,here is simple)
Can you help me with first 2 points ? Thank you for help.
以上就是PHP and MySQL Countdown and update DB in every second and at expiration save results in DB的详细内容，更多请关注web前端其它相关文章！