From ecce12e1f362527a6da3d0d0433feced30c6c871 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Sun, 3 Sep 2023 20:30:25 +0800 Subject: [PATCH] Submissions.php: format SQL statement --- Submissions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Submissions.php b/Submissions.php index d848a3f..fc3f46a 100644 --- a/Submissions.php +++ b/Submissions.php @@ -24,7 +24,10 @@ if (!empty($_GET["total"])) { $total = 0; } -$resultx1 = mysqli_query($con, "SELECT `Lab_Report_ID`,Title, lab_reports_table.Course_ID, `Posted_Date`, `Deadline`, `Marks`, `Type` , courses_table.URL FROM `lab_reports_table` INNER JOIN courses_table ON courses_table.Course_ID=lab_reports_table.Course_ID WHERE Lab_Report_ID=$id"); +$resultx1 = mysqli_query($con, "SELECT Lab_Report_ID, Title, lab_reports_table.Course_ID, Posted_Date, Deadline, Marks, Type, courses_table.URL + FROM lab_reports_table + INNER JOIN courses_table ON courses_table.Course_ID=lab_reports_table.Course_ID + WHERE Lab_Report_ID=$id"); while ($row = mysqli_fetch_assoc($resultx1)) { $Report_Type = $row['Type']; $c_id = $row['Course_ID'];