Courses.php: change info_Updated to info_updated. PHP usually uses camelCase as its naming convention. In that case, there should be no underscore between info and Updated.
parent
be86db36e9
commit
18f2e7023a
|
@ -139,7 +139,7 @@ New Date/Time <br><input type="date" name="date" required=""> <input type="time"
|
||||||
|
|
||||||
$sql = "UPDATE `lab_reports_table` SET `Deadline` = ('" . $Deadline . "'), `Instructions` = ('" . $instructions . "'), `Title` = ('" . $title . "'), `Marks` = ('" . $marks . "') WHERE `lab_reports_table`.`Lab_Report_ID` = '$getid'";
|
$sql = "UPDATE `lab_reports_table` SET `Deadline` = ('" . $Deadline . "'), `Instructions` = ('" . $instructions . "'), `Title` = ('" . $title . "'), `Marks` = ('" . $marks . "') WHERE `lab_reports_table`.`Lab_Report_ID` = '$getid'";
|
||||||
if ($con->query($sql) === TRUE) {
|
if ($con->query($sql) === TRUE) {
|
||||||
$_SESSION["info_Updated"]="Assignment information updated successfully.";
|
$_SESSION["info_updated"]="Assignment information updated successfully.";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo "Error: " . $sql . "<br>" . $con->error;
|
echo "Error: " . $sql . "<br>" . $con->error;
|
||||||
|
@ -253,9 +253,9 @@ Submission Type <input type='radio' name='type' value='Individual' required=''>
|
||||||
echo "<div class='col-md-7'> <h3> Lab Report Assignment list </h3>";
|
echo "<div class='col-md-7'> <h3> Lab Report Assignment list </h3>";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
if(isset($_SESSION["info_Updated"])){
|
if(isset($_SESSION["info_updated"])){
|
||||||
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_Updated'] . '</div>';
|
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_updated'] . '</div>';
|
||||||
$_SESSION['info_Updated'] = null;
|
$_SESSION['info_updated'] = null;
|
||||||
}
|
}
|
||||||
if (isset($_SESSION['info_courses'])) {
|
if (isset($_SESSION['info_courses'])) {
|
||||||
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_courses'] . '</div>';
|
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_courses'] . '</div>';
|
||||||
|
|
Loading…
Reference in New Issue