Courses.php: indent SQL code

Bug430-Eden2
Lan Hui 2023-09-07 19:29:52 +08:00
parent 0e22600816
commit 0895121ed0
1 changed files with 5 additions and 4 deletions

View File

@ -406,10 +406,11 @@ include 'Header.php';
<?php
$lecturer_id= $_SESSION['user_id'];
$result = mysqli_query($con,"SELECT course_students_table.ID,users_table.Full_Name, 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 course_students_table on course_students_table.Course_ID=courses_table.Course_ID
INNER JOIN users_table on users_table.Student_ID=course_students_table.Student_ID
WHERE Lecturer_User_ID=$lecturer_id and course_students_table.Status='Pending'");
$result = mysqli_query($con, "SELECT course_students_table.ID, users_table.Full_Name, 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 course_students_table ON course_students_table.Course_ID=courses_table.Course_ID
INNER JOIN users_table ON users_table.Student_ID=course_students_table.Student_ID
WHERE Lecturer_User_ID=$lecturer_id AND course_students_table.Status='Pending'");
if(mysqli_num_rows($result)==0)
{