doctor 0 Report post Posted May 10, 2006 I made a php-nuke website.I have so many users.My users wanted a online timed(counts from 20 seconds)test(multiple choices).I made the login system.But I have problems in test stage.Users will be send questions to our database.And admin will control these questions.He will save it to our database or delete it from our database.And users will be race in a day only five times.And also they must be answer the questions in 20 seconds.There will be shown a counter in the question page that counts from 20 second.Also unregistered users can not be reach the test page by anyway.Or if they try this the page must be redirect him to register page.Only registered users can answer these questions.I think it will be possible by Session_start() and session_register and session_destroy codes or by setcookie.I have little time to this because of my university education.But I think you will help me.I search all internet pages but I couldn't find any useful scripts about this online timed test.But I will have more time in the summer holiday.Is it impossible?I think impossible is nothing!Can we put time script by javascript?But how can we connect it with our database?I mean that out of time there will be a page shown that echo like this "Sorry you answered false.Please restart our test...." or answered in 20 seconds "Congratulations.Please click to next question". Also istatistics of other users must be shown in the page.Also after all true answers the users score must be increase. So,I wait your ideas or helps or scripts. Regards. Share this post Link to post Share on other sites
yordan 10 Report post Posted May 11, 2006 Er...You simply want to wait during ten seconds ?Then, a loop with ten times "sleep(1)" should do the job ?Or did I miss something ?RegardsYordan Share this post Link to post Share on other sites
doctor 0 Report post Posted May 15, 2006 Er...You simply want to wait during ten seconds ?Then, a loop with ten times "sleep(1)" should do the job ?Or did I miss something ?RegardsYordanMy user must see the timer which counts from 20 seconds on right corner of the test page. Share this post Link to post Share on other sites