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 '
NameEmailMobile
' . $row['name'] . '' . $row['StuEmail'] . '' . $row['Mobile'] . '
'; // 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 Students by First Name
0) { // If it ran OK, display the records. // Print how many lecturers there are: echo "

There is the information for the lecturer 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 '
NameEmailTelphone
' . $row['lecname'] . '' . $row['LecEmail'] . '' . $row['WTel'] . '
'; // Close the table. } else { // If it did not run OK. // Public message: echo '

Error

There is no lecturer match with the information you provided

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