diff --git a/Course.php b/Course.php
index 5ad410e..f3f507f 100644
--- a/Course.php
+++ b/Course.php
@@ -417,37 +417,38 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen
$remarking = "
Remarking request sent Reasons for remarking: $remarking_reason
";
}
- echo "
Lecturer feedback $notes $remarking
Submitted files: "; - $Sub_result = mysqli_query($con,"SELECT `Submission_ID`, `Submission_Date`, lab_report_submissions.Lab_Report_ID, - lab_report_submissions.Student_id sub_std, lab_report_submissions.Course_Group_id, `Attachment1`, - `Notes`, `Attachment2`, `Attachment3`, `Attachment4`, `Marks`, lab_report_submissions.Status, - `Title`,users_table.Full_Name,course_group_members_table.Student_ID - FROM `lab_report_submissions` - Left JOIN users_table on users_table.Student_ID=lab_report_submissions.Student_id - left JOIN course_group_members_table on course_group_members_table.Course_Group_id=lab_report_submissions.Course_Group_id - where Lab_Report_ID=$id and lab_report_submissions.Student_id='$student_id'"); + echo "Lecturer feedback $notes $remarking
+ Submitted files: "; + $sub_result = mysqli_query($con,"SELECT Submission_ID, Submission_Date, lab_report_submissions.Lab_Report_ID, lab_report_submissions.Student_id sub_std, lab_report_submissions.Course_Group_id, Attachment1, Notes, Attachment2, Attachment3, Attachment4, Marks, lab_report_submissions.Status, Title, users_table.Full_Name, course_group_members_table.Student_ID + FROM lab_report_submissions + LEFT JOIN users_table ON users_table.Student_ID=lab_report_submissions.Student_id + LEFT JOIN course_group_members_table ON course_group_members_table.Course_Group_id=lab_report_submissions.Course_Group_id + WHERE Lab_Report_ID=$id AND lab_report_submissions.Student_id='$student_id'"); - if (mysqli_num_rows($Sub_result) == 0) { - echo "No Attachments found."; + if (mysqli_num_rows($sub_result) == 0) { + echo "None."; } else { - while($row = mysqli_fetch_assoc($Sub_result)) { - $at1 = $row['Attachment1']; - $at2 = $row['Attachment2']; - $at3 = $row['Attachment3']; - $at4 = $row['Attachment4']; + while($row = mysqli_fetch_assoc($sub_result)) { + $att1 = $row['Attachment1']; + $att2 = $row['Attachment2']; + $att3 = $row['Attachment3']; + $att4 = $row['Attachment4']; - $full_link = "$at1"; + $full_link = "$att1"; - if($at2 != "") { - $full_link= $full_link."| $at2"; + if($att2 != "") { + $full_link = $full_link."| $att2"; } - if($at3 != "") { - $full_link= $full_link."| $at3"; + if($att3 != "") { + $full_link = $full_link."| $att3"; } - if($at4 != "") { - $full_link= $full_link."| $at4"; + if($att4 != "") { + $full_link = $full_link."| $att4"; } echo $full_link;