From 33e454e3dadf2dbd8e91a3ac82fae025e85f0282 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Fri, 8 Sep 2023 19:42:49 +0800 Subject: [PATCH] Courses.php: better spacing --- Courses.php | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/Courses.php b/Courses.php index 5c1686c..cc4b104 100644 --- a/Courses.php +++ b/Courses.php @@ -571,29 +571,28 @@ include 'Header.php'; echo " You are not enrolled in any Course"; } else { while($row = mysqli_fetch_assoc($result)) { - $name = $row['Course_Name']; - $code = $row['Course_Code']; - $faculty = $row['Faculty']; - $lecturer = $row['Full_Name']; - $academic_year = $row['Academic_Year']; - $url = $row['URL']; - $id = $row['Course_ID']; - $status = $row['Status']; - - if($status=="Joined") - { - echo "
- ($code) - $name
($url)     $status      -
Faculty: $faculty   Year: $academic_year   Lecturer: $lecturer
- "; - } - else - { - echo "
- ($code) - $name $status -
Faculty: $faculty   Year: $academic_year   Lecturer: $lecturer
- "; - } + $name = $row['Course_Name']; + $code = $row['Course_Code']; + $faculty = $row['Faculty']; + $lecturer = $row['Full_Name']; + $academic_year = $row['Academic_Year']; + $url = $row['URL']; + $id = $row['Course_ID']; + $status = $row['Status']; + if($status == "Joined") { + echo " +
+ ($code) $name
+ ($url)     $status     
+ Faculty: $faculty   Year: $academic_year   Lecturer: $lecturer +
+
"; + } else { + echo "
+ ($code) $name $status
+ Faculty: $faculty   Year: $academic_year   Lecturer: $lecturer +
"; + } } }