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

There is the information for the course 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 '
Course NameSemesterStudent Name
' . $row['CouLongName'] . '' . $row['SemesterInf'] . '' . $row['name'] . '
'; // Close the table. } else { // If it did not run OK. // Public message: echo '

Error

There is no course roster match with the information you provided

'; } } mysqli_close($dbc); // Close the database connection. } // End of the main Submit conditional. ?>

Class Roster

Course Name