diff --git a/Course.php b/Course.php index 7c1b15d..07e2675 100644 --- a/Course.php +++ b/Course.php @@ -68,12 +68,12 @@ include 'Header.php'; if (isset($_SESSION['info_general'])) { echo '
Lecturer feedback $notes $remarking
Submitted files: "; $Sub_result = mysqli_query($con,"SELECT `Submission_ID`, `Submission_Date`, lab_report_submissions.Lab_Report_ID, @@ -416,25 +411,25 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen 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) { + if (mysqli_num_rows($Sub_result) == 0) { echo "No Attachments found."; } else { while($row = mysqli_fetch_assoc($Sub_result)) { - $at1=$row['Attachment1']; - $at2=$row['Attachment2']; - $at3=$row['Attachment3']; - $at4=$row['Attachment4']; + $at1 = $row['Attachment1']; + $at2 = $row['Attachment2']; + $at3 = $row['Attachment3']; + $at4 = $row['Attachment4']; - $full_link="$at1"; + $full_link = "$at1"; - if($at2!="") { + if($at2 != "") { $full_link= $full_link."| $at2"; } - if($at3!="") { + if($at3 != "") { $full_link= $full_link."| $at3"; } - if($at4!="") { + if($at4 != "") { $full_link= $full_link."| $at4"; } @@ -458,7 +453,9 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen Create group"; ?>