I am currently in the process to do a fun quiz as a project and require a bit of help/advise. The way I would like the quiz to work is in the following two ways.
- A puzzle appears from random in the database (mySQL) and stay on the screen for 10 minutes. Once the 10 minutes are up, a new puzzle appears and the score from the last puzzle is saved.
- Every 7 days, you can do a new quiz.
All the puzzle screen and so on is built in PHP
What I require is a script(s) that can do the following
- Display on the screen a timer counting down from 10 minutes and once it reaches 0 it calls up a function and also resets the timer back to 10 and restarts the process again.
- Displays a timer that last for a specific time based upon an sql query DATETIME field and once the timer reaches this specific time, calls up a function.