hello what is the best way to create a database for Questions and Answers Script
the user can submit a question with a set of choices among which the right answer exists
the database must save the question, all the choices and the right answer.
the best way that comes to my mind is to make 2 tables:
Questions Table:
- ID
- Question
- Right_Answer_ID
Choices Table:
- ID
- Choice
- Question_ID
I'm using PHP and MYSQL for that so if i use this way it will be a little hard to insert information into my database, because i have to insert the Question and insert all choices and take the right choice ID modify the Right_Answer_ID field to that ID, it's a long process and i'm sure that there is a better way to achieve that, please HELP.
Thanks