Jump to content
xisto Community
doctor

Online Timed Test In A Php-nuke Site. I need your helps.

Recommended Posts

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. :P

Share this post


Link to post
Share on other sites

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 ?
Regards
Yordan

My 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.