forked from mrlan/LRR
Fixed the Bug produced by fixing Bug196
parent
8a47d3733c
commit
868f5854a2
|
@ -690,10 +690,11 @@ 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){
|
||||
echo "<option value=''> Search by faculty </option>";
|
||||
} else { while($row = mysqli_fetch_assoc($result)) {
|
||||
$fname=$row['Faculty'];
|
||||
|
||||
} else {
|
||||
echo"<option value=''> Search by faculty </option>";
|
||||
while($row = mysqli_fetch_assoc($result)) {
|
||||
$fname=$row['Faculty'];
|
||||
echo " <option value='$fname'> $fname </option>";
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue