Below is the result:
0) { // output data of each row while ($row = mysqli_fetch_assoc($result)) { $id = $row["id"]; $food = $row["myfood"]; $hobby = $row["myhobby"]; $email = $row["email"]; } } else { echo "0 results"; } ?>Click Here to go back previous php file.