0) { // If it ran OK, display the records. // Print how many users there are: echo "

There is the information for the student you are looking for.

\n"; // Table header. echo ' '; // Fetch and print all the records: while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) { //MYSQLI_ASSOC makes the returned array assortative. echo ' '; } echo '
StudentCourseGrade
' . $row['name'] . '' . $row['course'] . '' . $row['grade'] . '
'; // Close the table. } else { // If it did not run OK. // Public message: echo '

Error

There is no student match with the information you provided

'; } } mysqli_close($dbc); // Close the database connection. } // End of the main Submit conditional. ?>
Search Course Grade by Student Last Name