Right I havn't touched php/mysql in about 9 months (and i'd only been doing it for a few months then) so I've pretty much forgot everything. What i'm trying to do is run a test to see how easy it would be to make some sort of quiz.
To begin with I just want to test out a simple question (2+2 efor example). I want each question to be multiple choice and have 4 possible answers for the user to select from. The users answers wil be recorded in order to compare with other users through graphs and what not.
But I'm struggling to get going as I can't get my head round what mysql tables and fields I'd need. Would I need a questions table, and an answers table? And then each answer as a field?
As well as a users table I'm presuming.
Would sessions be used to record users answers?
I'm guessing in the code there'd be something along the lines of "if user selects option1 then overallscore +1" kind of thing, presuming option 1 is the correct answer. But how could I hide that from the user so that they couldn't simply click view source to find the answer?
Anyone point me in the right direction to get me started?
To begin with I just want to test out a simple question (2+2 efor example). I want each question to be multiple choice and have 4 possible answers for the user to select from. The users answers wil be recorded in order to compare with other users through graphs and what not.
But I'm struggling to get going as I can't get my head round what mysql tables and fields I'd need. Would I need a questions table, and an answers table? And then each answer as a field?

Would sessions be used to record users answers?
I'm guessing in the code there'd be something along the lines of "if user selects option1 then overallscore +1" kind of thing, presuming option 1 is the correct answer. But how could I hide that from the user so that they couldn't simply click view source to find the answer?
Anyone point me in the right direction to get me started?