Course.php: better indent SQL statement.
parent
d0781cde08
commit
a7aa3a103d
|
@ -106,7 +106,10 @@ include 'Header.php';
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Get groups of this student
|
// 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);
|
$resultx1 = mysqli_query($con, $sql);
|
||||||
while($row = mysqli_fetch_assoc($resultx1))
|
while($row = mysqli_fetch_assoc($resultx1))
|
||||||
|
|
Loading…
Reference in New Issue