diff --git a/Course.php b/Course.php index 8411c1d..7c1b15d 100644 --- a/Course.php +++ b/Course.php @@ -24,7 +24,7 @@ include 'Header.php'; . " , users_table.Full_Name FROM `courses_table` INNER JOIN users_table" . " ON users_table.User_ID=courses_table.Lecturer_User_ID where URL='$course_url' "); - if(mysqli_num_rows($result)==0) { + if(mysqli_num_rows($result) == 0) { echo "No course matching the given course URL: ".$course_url; @@ -37,20 +37,17 @@ include 'Header.php'; $academic = $row['Academic_Year']; $url = $row['URL']; $course_id = $row['Course_ID']; - // also get teaching assistant names(if any) + // also get teaching assistant names (if any) $ta_result = mysqli_query($con, "SELECT Full_Name FROM users_table where User_ID in (select TA from course_ta where Course_ID='$course_id');"); if (mysqli_num_rows($ta_result) == 0) { - echo "
- Courses > ($code) $name > Assignments
Faculty: $faculty   Year: $academic   Lecturer: $lecturer
"; + echo "
Courses > ($code) $name > Assignments
Faculty: $faculty   Year: $academic   Lecturer: $lecturer
"; } else { $ta_name = ""; while ($row = mysqli_fetch_assoc($ta_result)) { $ta_name = $ta_name.$row['Full_Name']." "; } $ta_name = trim ($ta_name); - echo "
- Courses > $name ($code) > Lab Reports
Faculty: $faculty | Year: $academic | Lecturer: $lecturer | Teaching Assistant: $ta_name -
"; + echo "
Courses > ($code) $name > Assignments
Faculty: $faculty   Year: $academic   Lecturer: $lecturer   Teaching Assistant: $ta_name
"; } } } @@ -540,6 +537,7 @@ where course_group_members_table.Course_Group_id=$id"); +