hi i have an exercise on doing quiz in database. below is my requirement that has been done. -i have done retrieve question randomly from database -user can select answer *there is a problem when i have to compare the answer selected by the user with my database.
in my database, i have created id_question, question,ansA,ansB, ansC, ansD and correctAns.
so, i am stuck on doing the comparison, when i do the if-else statement, its going wrong as below
my problem is : how to compare the answer clicked from user with my database answer, thanks for helping
Aucun commentaire:
Enregistrer un commentaire