From 3214b26d5d73823a9b4642c9632b2bd28a02003c Mon Sep 17 00:00:00 2001 From: kingsley Date: Thu, 22 Dec 2022 05:57:20 +0800 Subject: [PATCH] changed info_Remarking to Reflect --- Script.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Script.php b/Script.php index ccabd3b..f600a3a 100644 --- a/Script.php +++ b/Script.php @@ -693,7 +693,7 @@ if (!empty($_GET["remarking"])) { if ($con->query($sql) === TRUE) { - $_SESSION["info_ReMarking"] = "Remarking Request Sent"; + $_SESSION["Reflect"] = "Remarking Request Sent"; header("Location: Course.php?url=" . $url); } else { echo "Error: " . $sql . "
" . $con->error; @@ -722,7 +722,7 @@ if (!empty($_GET["creategroup"])) { $sql = "INSERT INTO `course_group_members_table`( `Course_Group_id`, `Student_ID`, `Status`) VALUES ('$gid','$student_id','Created')"; if ($con->query($sql) === TRUE) { - $_SESSION["info_ReMarking"] = "Course group Created"; + $_SESSION["Reflect"] = "Course group Created"; header("Location: Course.php?url=" . $url); } else { echo "Error: " . $sql . "
" . $con->error; @@ -773,26 +773,26 @@ if (!empty($_GET["groupinvite"])) { if ($Group_Member == '0') { mysqli_query($con, "UPDATE `course_groups_table` SET `Group_Member` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'"); - $_SESSION["info_ReMarking"] = $student_id . " was invited to the group"; + $_SESSION["Reflect"] = $student_id . " was invited to the group"; header("Location: Course.php?url=" . $url); } elseif ($Group_Member2 == '0') { mysqli_query($con, "UPDATE `course_groups_table` SET `Group_Member2` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'"); - $_SESSION["info_ReMarking"] = $student_id . " was invited to the group"; + $_SESSION["Reflect"] = $student_id . " was invited to the group"; header("Location: Course.php?url=" . $url); } elseif ($Group_Member3 == '0') { mysqli_query($con, "UPDATE `course_groups_table` SET `Group_Member3` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'"); - $_SESSION["info_ReMarking"] = $student_id . " was invited to the group"; + $_SESSION["Reflect"] = $student_id . " was invited to the group"; header("Location: Course.php?url=" . $url); } elseif ($Group_Member4 == '0') { mysqli_query($con, "UPDATE `course_groups_table` SET `Group_Member4` = ('" . $student_id . "') WHERE `course_groups_table`.`Course_Group_id` = '$groupid'"); - $_SESSION["info_ReMarking"] = $student_id . " was invited to the group"; + $_SESSION["Reflect"] = $student_id . " was invited to the group"; header("Location: Course.php?url=" . $url); } else { - $_SESSION["info_ReMarking"] = " You cant add any more members"; + $_SESSION["Reflect"] = " You cant add any more members"; header("Location: Course.php?url=" . $url); } } - $_SESSION["info_ReMarking"] = $student_id . " was invited to the group"; + $_SESSION["Reflect"] = $student_id . " was invited to the group"; header("Location: Course.php?url=" . $url); } else { echo "Error: " . $sql . "
" . $con->error; @@ -817,7 +817,7 @@ if (!empty($_GET["acceptinvite"])) { } if ($con->query($sql) === TRUE) { - $_SESSION["info_ReMarking"] = " Group Invite Updated"; + $_SESSION["Reflect"] = " Group Invite Updated"; header("Location: Course.php?url=" . $url); } else { echo "Error: " . $sql . "
" . $con->error;