The structure of the form is
Question textbox
Choice 1 textbox radiobutton 1
Choice 2 textbox radiobutton 2
Choice 3 textbox radiobutton 3
choice 4 textbox radiobutton 4
and save button
Suppose
Question - What is the capital of India?
and its choices are
Choice 1- SriLanka
Choice 2- India
Choice 3- NewYork
Choice 4- London
the correct answer is india and its id is 2
After inserting the data in three table it will look
tblQuestion
qid Question
-------------------
1 What is the capital of India?
tblAnswerChoice
ansid qid Choice
-------------------------
1 1 SriLanka
2 1 India
3 1 NewYork
4 1 London
tblAnswer
aid qid ansid
----------------------
1 1 2
Now my problem how to show the correct answer through radio button corresponding
the answer choice.
for above example the radiobutton 2 will be checked true
but it is possible to show the correct answer through radio button and then add 1 Value in Result Database
Bookmarks