Fixed bug196

Bug196-Ward
ileaderx 2022-06-19 15:49:56 +03:00
parent 0065489fcb
commit 8a47d3733c
1 changed files with 4 additions and 3 deletions

View File

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