CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
//canteen supervisor variables
$canteen_supervisor_id = $_REQUEST['canteen_supervisor_id'];
$is_active = $_REQUEST['is_active'];
$modified_on = date("Y-m-d");
$modified_by = $_SESSION['USER_ID'];
//inserting updated data into canteen supervisor table
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE canteen_supervisor SET is_active = '$is_active' , modified_on = '$modified_on' , modified_by = '$modified_by' WHERE canteen_supervisor_id = '$canteen_supervisor_id'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>