Admin.php: remove superfluous if statement.
parent
12239d9a29
commit
93ba7d4389
10
Courses.php
10
Courses.php
|
@ -375,8 +375,9 @@ course_ta ON course_ta.Course_ID=courses_table.Course_ID where course_ta.TA=$use
|
|||
|
||||
}
|
||||
|
||||
if(mysqli_num_rows($result)==0)
|
||||
{} else { while($row = mysqli_fetch_assoc($result)) {
|
||||
if(mysqli_num_rows($result) != 0)
|
||||
{
|
||||
while($row = mysqli_fetch_assoc($result)) {
|
||||
$id=$row['Course_ID'];
|
||||
$name=$row['Course_Name'];
|
||||
$code=$row['Course_Code'];
|
||||
|
@ -402,7 +403,10 @@ where course_ta.Course_ID=$id");
|
|||
</div>
|
||||
</a>";
|
||||
|
||||
}}?>
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<br>
|
||||
|
|
Loading…
Reference in New Issue