query($sql); if ($result->num_rows > 0) { echo "

Student Marksheet

"; echo ""; echo ""; // Output data of each row while($row = $result->fetch_assoc()) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
First NameLast NameEnglish MarksMath Marks
" . $row["first_name"] . "" . $row["last_name"] . "" . $row["english_marks"] . "" . $row["math_marks"] . "
"; } else { echo "No results found"; } ?>