Course.php: remove '`'.
parent
7282d80ce4
commit
c1aee1e457
13
Course.php
13
Course.php
|
@ -129,15 +129,14 @@ include 'Header.php';
|
|||
// (3) none of the student's group members have already submitted
|
||||
// the assignment.
|
||||
|
||||
$sql_stmt = "SELECT Type, Lab_Report_ID, Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4`".
|
||||
" FROM `lab_reports_table`".
|
||||
" WHERE Course_ID=$course_id".
|
||||
" AND (Deadline > '$c_date' OR Lab_Report_ID IN (SELECT `Lab_Report_ID` FROM `extended_deadlines_table` WHERE Student_ID=$student_id AND Extended_Deadline_Date > '$c_date' AND Lab_Report_ID IN (SELECT Lab_Report_ID FROM lab_reports_table WHERE Course_ID=$course_id)))".
|
||||
" AND Lab_Report_ID NOT IN (SELECT Lab_Report_ID FROM lab_report_submissions WHERE Course_Group_id IN (SELECT Course_Group_id FROM course_group_members_table WHERE Student_ID=$student_id))".
|
||||
" ORDER BY Lab_Report_ID DESC";
|
||||
$sql_stmt = "SELECT Type, Lab_Report_ID, Marks, Course_ID, Posted_Date, Deadline, Instructions, lab_reports_table.Title, Attachment_link_1, Attachment_link_2, Attachment_link_3, Attachment_link_4
|
||||
FROM lab_reports_table
|
||||
WHERE Course_ID=$course_id
|
||||
AND (Deadline > '$c_date' OR Lab_Report_ID IN (SELECT Lab_Report_ID FROM extended_deadlines_table WHERE Student_ID=$student_id AND Extended_Deadline_Date > '$c_date' AND Lab_Report_ID IN (SELECT Lab_Report_ID FROM lab_reports_table WHERE Course_ID=$course_id)))
|
||||
AND Lab_Report_ID NOT IN (SELECT Lab_Report_ID FROM lab_report_submissions WHERE Course_Group_id IN (SELECT Course_Group_id FROM course_group_members_table WHERE Student_ID=$student_id))
|
||||
ORDER BY Lab_Report_ID DESC";
|
||||
|
||||
$result1 = mysqli_query($con, $sql_stmt);
|
||||
|
||||
if(mysqli_num_rows($result1) == 0) {
|
||||
echo "<br><div class='alert alert-warning'>No active assignments now.</div>";
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue