Courses.php: format SQL statement

Bug430-Eden2
Lan Hui 2023-09-06 19:30:38 +08:00
parent 39cc069301
commit 399ac535a5
1 changed files with 4 additions and 5 deletions

View File

@ -324,12 +324,11 @@ include 'Header.php';
} }
echo "</div>"; echo "</div>";
$resultx1 = mysqli_query($con,"SELECT course_students_table.Student_ID,users_table.Full_Name FROM $resultx1 = mysqli_query($con, "SELECT course_students_table.Student_ID, users_table.Full_Name
`course_students_table` FROM course_students_table
INNER JOIN users_table on users_table.Student_ID=course_students_table.Student_ID INNER JOIN users_table on users_table.Student_ID=course_students_table.Student_ID
WHERE Course_ID=$course_id"); WHERE Course_ID=$course_id");
echo "<span id='dropstudents' style='display:none;'> <select name='stdid'>"; echo "<span id='dropstudents' style='display:none;'> <select name='stdid'>";
while($row = mysqli_fetch_assoc($resultx1)) while($row = mysqli_fetch_assoc($resultx1))
{ {