diff --git a/Course.php b/Course.php index fe8950b..9354062 100644 --- a/Course.php +++ b/Course.php @@ -103,11 +103,11 @@ WHERE course_group_members_table.Student_ID=$student_id and course_groups_table. $resultx1 = mysqli_query($con,$sql); -while($row = mysqli_fetch_assoc($resultx1)) {$group_id=$row['Course_Group_id'];} +while($row = mysqli_fetch_assoc($resultx1)) {$_SESSION['group_id']=$row['Course_Group_id'];} if($group_id==""){$group_id=-1;} - + $group_id=$_SESSION['group_id']; $var="SELECT Type,Lab_Report_ID,Marks, `Course_ID`, `Posted_Date`, `Deadline`, `Instructions`, lab_reports_table.Title, `Attachment_link_1`, `Attachment_link_2`, `Attachment_link_3`, `Attachment_link_4` @@ -169,6 +169,7 @@ if(mysqli_num_rows($result1)==0)