From 26bf3ec3598b782f0e7c6877af4a873cf6d9e04f Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Mon, 28 Aug 2023 21:16:42 +0800 Subject: [PATCH] Course.php: better indent SQL statement. --- Course.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Course.php b/Course.php index f9942e0..75fec1c 100644 --- a/Course.php +++ b/Course.php @@ -19,10 +19,10 @@ include 'Header.php'; if(!empty($_GET["url"])) { $course_url = mysqli_real_escape_string($con, $_GET["url"]); - $result = mysqli_query($con,"SELECT `Course_ID`, `Course_Name`, `Academic_Year`, `Faculty`," - . " `Lecturer_User_ID`, `TA_User_ID`, `Course_Code`, `URL`, `Verify_New_Members` " - . " , 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' "); + $result = mysqli_query($con,"SELECT Course_ID, Course_Name, Academic_Year, Faculty, Lecturer_User_ID, TA_User_ID, Course_Code, URL, Verify_New_Members, 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) {