Course.php: better indent SQL statement.

Bug430-Eden2
Lan Hui 2023-08-29 19:40:07 +08:00
parent d0781cde08
commit a7aa3a103d
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ include 'Header.php';
<?php
// Get groups of this student
$sql = "SELECT course_group_members_table.Course_Group_id FROM course_group_members_table INNER JOIN course_groups_table ON course_group_members_table.Course_Group_id = course_groups_table.Course_Group_id WHERE course_group_members_table.Student_ID=$student_id and course_groups_table.Course_id=$course_id";
$sql = "SELECT course_group_members_table.Course_Group_id
FROM course_group_members_table
INNER JOIN course_groups_table ON course_group_members_table.Course_Group_id=course_groups_table.Course_Group_id
WHERE course_group_members_table.Student_ID=$student_id AND course_groups_table.Course_id=$course_id";
$resultx1 = mysqli_query($con, $sql);
while($row = mysqli_fetch_assoc($resultx1))