diff --git a/Course.php b/Course.php index 5ba362d..a9d514b 100644 --- a/Course.php +++ b/Course.php @@ -295,7 +295,8 @@ lab_report_submissions.Student_id sub_std, lab_report_submissions.Course_Group_i 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=$lab_repo_id and lab_report_submissions.Student_id='$student_id' or lab_report_submissions.Course_Group_id='$group_id'"); +where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$student_id')"); +// or lab_report_submissions.Course_Group_id='$group_id' if(mysqli_num_rows($Sub_result)==0) { @@ -343,25 +344,33 @@ if(mysqli_num_rows($Sub_result)==0) - - - - - - - +