Can anyone tell me how to retrieve records from database one at a time..
I am attaching a sample code here:
include('connection.php');
$sql1="SELECT * FROM question_master";
$result=mysql_query($sql1);
while($row = mysql_fetch_array($result))
{
echo $row['Question'];
}
Let me explain the code..
There is a table named "question_master" (containing some questions) in database with a field named "Question".
This code display all the questions stored in the table into the screen.
My problem is here
I want to display the questions one by one. Like when we click the next button it will display the next question and so until all the records are displayed.
Help me out with the main logic I should use to implement it. Or help me with the script.