Welcome Guest, Not a member yet? Register   Sign In
Making Quizzes
#6

[eluser]digital_frog[/eluser]
[quote author="Faisal Alghamdi" date="1343989764"]You can create two tables Questions and Answers.

Question
-----------
..quiz_id..
..questions..

The questions should be in one field like this: What is your name?@How old Are you?@What .. split the string with @ to split the questions into an 2d-array.. Do the same for the answers and if you have multiple type of questions,, you might have a field contains the type of the questions which is linked to another table called Options.

When you retrieve the data, make sure you put them into 2d-array or a matrix so you can have a good data structure to manipulate the data easily.

I hope this helps.[/quote]





I've actually already implemented something kind of like this. I have columns for questions, their answers, which quiz their for, as well as what type (ie:multiple choice/true false) of question it is. Now I'm working on finding ways to shuffle the order of the questions and answers as well as keeping track of the shuffle for when the answers are being checked.


Messages In This Thread
Making Quizzes - by El Forum - 07-02-2012, 12:43 PM
Making Quizzes - by El Forum - 08-02-2012, 11:16 PM
Making Quizzes - by El Forum - 08-02-2012, 11:18 PM
Making Quizzes - by El Forum - 08-03-2012, 03:29 AM
Making Quizzes - by El Forum - 08-03-2012, 10:51 AM
Making Quizzes - by El Forum - 08-03-2012, 10:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB