CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
//od request variables
$employee_id = $_REQUEST['employee_id'];
$application_date = $_REQUEST['application_date'];
$from_date = $_REQUEST['from_date'];
$oddays = $_REQUEST['oddays'];
$to_date = $_REQUEST['to_date'];
$duty_details = $_REQUEST['duty_details'];
$odrequest_status = $_REQUEST['odrequest_status'];
$approve_status = $_REQUEST['approve_status'];
$created_on = date("Y-m-d");
$created_by = $_SESSION['USER_ID'];;
$is_active = 'yes';
//inserting data into od request table
$db_handle = new DBController();
$newInsert = $db_handle->tableinsert("INSERT INTO od_request(employee_id,application_date,from_date,oddays,to_date,duty_details,odrequest_status,
approve_status,created_on,created_by,is_active)
VALUES ('$employee_id','$application_date','$from_date','$oddays','$to_date','$duty_details','$odrequest_status',
'$approve_status','$created_on','$created_by','$is_active')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>