First of all, let me say I am NOT asking for code, just to be pointed in the right direction.
I’m a newbie in php and mysql and have been teaching myself what I could learn from online lessons and tutorials (mostly w3school.com). I have found plenty of information for inputting data into a database or fetching data from a database, but I have find nothing on how to COMPARE input with a database.
What I’m trying to do is develop a quiz for students. I have the quiz designed with radio buttons, I have the mysql database with id, question, options a, b, c, and d, and an answer column that says which of those is correct. But I have no clue what php functions to use to compare the students input with my database so it can mark correct and incorrect answers.
Again, not asking for code, just a nudge in the right direction, particularly which functions would be useful for this sort of thing.
Thanks for your time!