Hi, I have been trying to write code for making an online exam
management system. I could not think about a logic to implement the
Here is the problem:
I have a questions table with fields like- id, question, opt1, opt2,
opt3, opt4 and correctans.
I want to read all the records from this table but I want to display
only one record at a time for user to answer the question. User then
clicks next to see the next question and choices and so on till the end
of the records.
I don't know how to implement this. I did
Now how can I use this @questions and display only one record at a time
so that user answers the question and then I can do something to store
the user response?
OR if I am wrong, please suggest good logic to implement this.