PHP and MySQL Countdown and update DB in every second and at expiration save results in DB

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏