CasperSecurity
<?php
session_start();
include '../../../web/connection/connectionv2.php';
$dimension= $_REQUEST['dimension'];
$dimensionid = $_REQUEST['dimensionid'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE canteen_dimensions SET dimension = '$dimension' WHERE dimension_id = '$dimensionid'");
if($newUpdate === TRUE){
$_SESSION['ERROR_MSG'] = "Success";
$_SESSION['MSG_ALRT'] = "TRUE";
header('location:../../../web/home/modules/university/Canteen/dimension/dimension_grid.php');
}else{
$_SESSION['ERROR_MSG'] = "Unsuccess";
$_SESSION['MSG_ALRT'] = "FALSE";
header('location:../../../web/home/modules/university/Canteen/dimension/dimension_grid.php');
}
?>