From 399ac535a5eab679f84e6248eaa990130a9c2182 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Wed, 6 Sep 2023 19:30:38 +0800 Subject: [PATCH] Courses.php: format SQL statement --- Courses.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Courses.php b/Courses.php index 7331789..028fd10 100644 --- a/Courses.php +++ b/Courses.php @@ -324,11 +324,10 @@ include 'Header.php'; } echo ""; - $resultx1 = mysqli_query($con,"SELECT course_students_table.Student_ID,users_table.Full_Name FROM -`course_students_table` -INNER JOIN users_table on users_table.Student_ID=course_students_table.Student_ID -WHERE Course_ID=$course_id"); - + $resultx1 = mysqli_query($con, "SELECT course_students_table.Student_ID, users_table.Full_Name + FROM course_students_table + INNER JOIN users_table on users_table.Student_ID=course_students_table.Student_ID + WHERE Course_ID=$course_id"); echo "