Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2009, 09:17 AM
Registered User
 
Join Date: Jan 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default help me create a muiltchoice quiz

am using mysql database server and php and apache and everything is fine. I have evenly developed online learning system for maseno university that enables lecturers to conduct lectures online. thanks to book i had purchased form wrox books.com. Now my big problem is how to create online exams whereby lecturers can set quizs and students do them and the system be able to grade them up automatically and store their marks in a score sheet.
Please I would like to see the code for calculating the scores and for grading the exams. I also need to know how to process ansered quizs. the quizs will make use of radio buttons and checkboxes.
Please I need assistance. if possible give a reference material for the same

Last edited by kinyua128; February 23rd, 2009 at 02:57 AM.. Reason: i felt my quiz was not well understood
 
Old February 21st, 2009, 04:42 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Hi Kinyua

The short answer is ... yes.
As a proper answer, this is a bit of a general question, so I guess you are looking for pointers to get started. Here are my thoughts from first glance:

- You want teachers to be able to add the questions and students to log in, so the easiest way would be to use a database (probably MySQL) to store login details, the input questions and answers and the student's scores. If you cannot install/access a database at your school, you could do something with text or xml files, but this makes things a little trickier. I'll assume the database route.

- You will need a table to store the login details, so their name, password, if they are a pupil or a teacher, and possibly which class they are in.

- You would have a table with the main quiz details, so things like name, which teacher, maybe say which class can access it

- Next up is a table to store the questions, which is really just the text, its questin number and what quiz it is in.

- You need a table to store the options for each question,which is the text of the answer and if it is correct. You could store the correct answer with the question but this way allows you to have more than one correct answer.

- Finally, you would want a table to store the scores, which is just the students name, which quiz they took and their score.

- For the site, you just need a few pages for logging in, creating questions and the actual quiz page. These can be simple pages with forms and bit of session stuff to store who is logged in.

Of course you can expand this or try a completely different way, but I hope this has given you some ideas.

Phil
The Following User Says Thank You to philip_cole For This Useful Post:
kinyua128 (February 23rd, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
quiz total score frenziedsilence Beginning PHP 2 January 14th, 2004 12:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.