When a student will be solve the one question out of the 10 howe fetch the remaining question from same table in sql php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When a student will be solve the one question out of the 10 howe fetch the remaining question from same table in sql php

Fetching data from question table and student insert the answer of the question with get method. When user click on the back button all question is available there but i want that when user submit the answer of the one question then show the remaining question from same table

1st Aug 2021, 8:09 PM
Muzaz Kali
Muzaz Kali - avatar
2 Answers
+ 2
The logic here is: User submit the form Php gets the answer Php sends a request to the sql data base right answers table Php than checks it if the right answer is equals to the users answer If yes the php sends a request to sql databases questions table for the next question
7th Aug 2021, 8:18 PM
Ocram Co
Ocram Co - avatar
+ 2
If you wanna know how to use php for sql request check out the link below https://www.w3schools.com/php/php_mysql_connect.asp
7th Aug 2021, 8:19 PM
Ocram Co
Ocram Co - avatar