diff --git a/Courses.php b/Courses.php index e87c6fd..8bdd049 100644 --- a/Courses.php +++ b/Courses.php @@ -561,13 +561,11 @@ include 'Header.php'; } // Otherwise, list the student's joined courses (already done), in reverse chronological order echo "

My courses

"; - $result = mysqli_query($con,"SELECT users_table.Full_Name, course_students_table.Status, courses_table.Course_ID, `Course_Name`, `Academic_Year`, `Faculty`, `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` FROM `courses_table` -INNER JOIN users_table - ON users_table.User_ID=courses_table.Lecturer_User_ID - -INNER JOIN course_students_table on course_students_table.Course_ID=courses_table.Course_ID - - where course_students_table.Student_ID=$student_id ORDER BY Academic_Year DESC, URL ASC"); + $result = mysqli_query($con, "SELECT users_table.Full_Name, course_students_table.Status, courses_table.Course_ID, Course_Name, Academic_Year, Faculty, Lecturer_User_ID, TA_User_ID, Course_Code, URL, Verify_New_Members + FROM courses_table + INNER JOIN users_table ON users_table.User_ID=courses_table.Lecturer_User_ID + INNER JOIN course_students_table ON course_students_table.Course_ID=courses_table.Course_ID + WHERE course_students_table.Student_ID=$student_id ORDER BY Academic_Year DESC, URL ASC"); if(mysqli_num_rows($result)==0) {