CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$employee_id = $_REQUEST['employee_id'];
$effective_month = $_REQUEST['effective_month'];
$effective_year = $_REQUEST['effective_year'];
$salary_type_id = $_REQUEST['salary_type_id'];
$amount = $_REQUEST['amount'];
$from_month = $_REQUEST['from_month'];
$from_year = $_REQUEST['from_year'];
$to_month = $_REQUEST['to_month'];
$to_year = $_REQUEST['to_year'];
$status = $_REQUEST['status'];
$created_on = date("Y-m-d");
$created_by = $_REQUEST['created_by'];
$is_active = $_REQUEST['is_active'];
$db_handle = new DBController();
$newInsert = $db_handle->tableinsert("INSERT INTO employee_variable_deduction (employee_id,effective_month,effective_year,salary_type_id,amount,
from_month,from_year,to_month,to_year,status,created_on,created_by,is_active)
VALUES('$employee_id','$effective_month','$effective_year','$salary_type_id','$amount','$from_month','$from_year','$to_month','$to_year','$status',
'$created_on','$created_by','$is_active')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>