PHP Logic for Online Test

Reply

Join Date: Mar 2007
Posts: 2
Reputation: colorockies1975 is an unknown quantity at this point 
Solved Threads: 0
colorockies1975 colorockies1975 is offline Offline
Newbie Poster

PHP Logic for Online Test

 
0
  #1
Mar 19th, 2007
Hello experts,

I'm new to PHP/Javascript. I am working on an Online examination system for prospective candidates. This is so as to learn object-oriented programming for my improvement.

Story So far: I have the mechanism in PHP/Javascript/Mysql to create an online test. This lets the user select the kind of test and the number of questions da da da... User logins with a login/password and is ready to take the test.

Now: I'm not trying to be really imaginative and make this test highly user-friendly. The questions (with ID) for each test are stored in a view created at run-time. These questions will be displayed from, say 1 to 20, through Back and Next buttons and will be multiple choice (one answer only).

What I have come up with: I could make the program go to the database everytime the user clicks on the Next button and randomly select a question from the view that has not already been answered. But that would not let me get back the same question when the user clicks on the Back button.

Help: I know that implementing what I want would be more complex (and involves more logic) than I can think of right now. Could someone give me a direction to go for me so I can figure this out?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 138
Reputation: php_daemon is an unknown quantity at this point 
Solved Threads: 2
php_daemon php_daemon is offline Offline
Junior Poster

Re: PHP Logic for Online Test

 
0
  #2
Mar 22nd, 2007
You can save the randomly selected id to the session. That way you can keep track of the questions that have been selected, select only questions that have not yet been selected and navigate through them.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 2
Reputation: colorockies1975 is an unknown quantity at this point 
Solved Threads: 0
colorockies1975 colorockies1975 is offline Offline
Newbie Poster

Re: PHP Logic for Online Test

 
0
  #3
Mar 29th, 2007
Sounds good, brother. Thanks a lot.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC