CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$leave_credit_id = $_REQUEST['leave_credit_id'];
$employee_id = $_REQUEST['employee_id'];
$leave_credit_days = $_REQUEST['leave_credit_days'];
$db_handle = new DBController();
$newInsert = $db_handle->tableinsert("INSERT INTO leave_credit_days(leave_credit_id,employee_id,leave_credit_days)
VALUES('$leave_credit_id','$employee_id','$leave_credit_days')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>