More informative message when no search result is returned

Hui-Organize
Lan Hui 2024-10-05 07:43:10 +08:00
parent 545915b8be
commit e8bbce386a
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ include 'Header.php';
} }
if (mysqli_num_rows($result) == 0) { if (mysqli_num_rows($result) == 0) {
echo "No results. <hr>"; echo "No such course offered in this academic year. Please check that your have entered the correct course code.<hr>";
} else { } else {
while($row = mysqli_fetch_assoc($result)) { while($row = mysqli_fetch_assoc($result)) {
$name = $row['Course_Name']; $name = $row['Course_Name'];