More informative message when no search result is returned
parent
545915b8be
commit
e8bbce386a
|
@ -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'];
|
||||||
|
|
Loading…
Reference in New Issue