0) { // Student found, fetch and display the name $name_row = mysqli_fetch_assoc($name_result); $student_name = $name_row['stud_first_name']; } else { echo "No student found with the given enrollment number."; } } else { echo "Error: " . mysqli_error($con); } } /*else { echo "Enrollment number not provided."; }*/ // Close connection mysqli_close($con); //} ?>