CasperSecurity
<?php
session_start();
include '../../../../web/connection/connectionv2.php';
include '../../../../web/connection/con.php';
include '../../../../web/connection/encryption.php';
$group_id = $_REQUEST['igrpid'];
$item_type = $_REQUEST['item_type'];
$group_name = $_REQUEST['group_name'];
$date = date("Y-m-d H:i:s");
$active = 'yes';
$userId = $_SESSION['USER_ID'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE canteen_item_group
SET item_type='$item_type',item_group_name='$group_name',modified_on ='$date',modified_by = '$userId' WHERE item_group_id = '$group_id'");
if($newUpdate == TRUE){
$_SESSION['ERROR_MSG'] = "Success";
$_SESSION['MSG_ALRT'] = "TRUE";
header('location:../../../../web/home/modules/university/Canteen/item_group/item_group.php');
}else{
$_SESSION['ERROR_MSG'] = "Unsuccess";
$_SESSION['MSG_ALRT'] = "FALSE";
header('location:../../../../web/home/modules/university/Canteen/item_group/item_group.php');
}