Fixed the Bug produced by fixing Bug196

Bug196-Ward
ileaderx 2022-06-20 00:15:04 +03:00
parent 8a47d3733c
commit 868f5854a2
2 changed files with 6 additions and 5 deletions

View File

@ -1 +1 @@
deny from all allow from all

View File

@ -690,11 +690,12 @@ List courses by faculty
<select name='faculty' class='form-control'>"; <select name='faculty' class='form-control'>";
$result = mysqli_query($con,"SELECT DISTINCT(Faculty) as Faculty FROM `courses_table`"); $result = mysqli_query($con,"SELECT DISTINCT(Faculty) as Faculty FROM `courses_table`");
if(mysqli_num_rows($result)==0){ if(mysqli_num_rows($result)==0){
echo "<option value=''> Search by faculty </option>";
} else { while($row = mysqli_fetch_assoc($result)) {
$fname=$row['Faculty'];
echo "<option value='$fname'> $fname </option>"; } else {
echo"<option value=''> Search by faculty </option>";
while($row = mysqli_fetch_assoc($result)) {
$fname=$row['Faculty'];
echo " <option value='$fname'> $fname </option>";
}} }}
echo "</select></div></div> echo "</select></div></div>