diff --git a/Submissions.php b/Submissions.php index c29bf23..73b1dae 100644 --- a/Submissions.php +++ b/Submissions.php @@ -29,16 +29,18 @@ if(!empty($_GET["total"])) } -$resultx1 = mysqli_query($con,"SELECT `Lab_Report_ID`,Title, `Course_ID`, `Posted_Date`, `Deadline`, `Marks`, `Type` FROM `lab_reports_table` 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']; $Report_Title = $row['Title']; + $url = $row['URL']; } - + + -echo "