Courses.php: format SQL code
parent
54d1d5ee97
commit
aa349a8d6c
12
Courses.php
12
Courses.php
|
@ -561,13 +561,11 @@ include 'Header.php';
|
||||||
}
|
}
|
||||||
// Otherwise, list the student's joined courses (already done), in reverse chronological order
|
// Otherwise, list the student's joined courses (already done), in reverse chronological order
|
||||||
echo "<h1 class='display-6'> My courses </h1>";
|
echo "<h1 class='display-6'> My courses </h1>";
|
||||||
$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`
|
$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
|
||||||
INNER JOIN users_table
|
FROM courses_table
|
||||||
ON users_table.User_ID=courses_table.Lecturer_User_ID
|
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
|
||||||
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");
|
||||||
|
|
||||||
where course_students_table.Student_ID=$student_id ORDER BY Academic_Year DESC, URL ASC");
|
|
||||||
|
|
||||||
if(mysqli_num_rows($result)==0)
|
if(mysqli_num_rows($result)==0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue