I have been trying to write quiz application. I have set a database tbl_question(questionId, question, correctAnswer, category) and tbl_options(optionId, questionId, option1, option2, option3, option4).
When user logins into the system, a random question should be provided to the user from the database. the question need notto be repeated and once the question is loaded, the user can either quite, or answer. if answer then can go to next question else not. if the user refresh the page the question should be same loaded.