CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$employee_id = $_REQUEST['employee_id'];
$month = $_REQUEST['month'];
$year = $_REQUEST['year'];
$pay_bil_no = $_REQUEST['pay_bil_no'];
$gross_earning = $_REQUEST['gross_earning'];
$total_deduction = $_REQUEST['total_deduction'];
$net_pay = $_REQUEST['net_pay'];
$payment_mode = $_REQUEST['payment_mode'];
$cheque_no = $_REQUEST['cheque_no'];
$cheque_dt = $_REQUEST['cheque_dt'];
$voucher_no = $_REQUEST['voucher_no'];
$bank_id = $_REQUEST['bank_id'];
$salary_status = $_REQUEST['salary_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_salary(employee_id,month,year,pay_bil_no,gross_earning,
total_deduction,net_pay,payment_mode,cheque_no,cheque_dt,voucher_no,bank_id,salary_status,created_on,created_by,is_active)
VALUES('$employee_id','$month','$year','$pay_bil_no','$gross_earning','$total_deduction','$net_pay','$payment_mode','$cheque_no',
'$cheque_dt','$voucher_no','$bank_id','$salary_status','$created_on','$created_by','$is_active')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>