CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
//canteen supervisor variables
$canteen_id = $_REQUEST['canteen_id'];
$employee_id = $_REQUEST['employee_id'];
$staff_type = $_REQUEST['staff_type'];
$effective_from = $_REQUEST['effective_from'];
$end_date = $_REQUEST['end_date'];
$supervisor_name = $_REQUEST['supervisor_name'];
$supervisor_mobile = $_REQUEST['supervisor_mobile'];
$supervisor_address = $_REQUEST['supervisor_address'];
$created_on = date("Y-m-d");
$created_by = $_SESSION['USER_ID'];
$is_active = 'yes';
//inserting data into canteen supervisor table
$db_handle = new DBController();
$newInsert = $db_handle->tableinsert("INSERT INTO canteen_supervisor (canteen_id,employee_id,staff_type,effective_from,end_date,supervisor_name,supervisor_mobile,supervisor_address,created_on,created_by,is_active)
VALUES ('$canteen_id','$employee_id','$staff_type','$effective_from','$end_date','$supervisor_name','$supervisor_mobile','$supervisor_address','$created_on','$created_by','$is_active')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>