CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$holiday_id = $_REQUEST['holiday_id'];
$holiday_type = $_REQUEST['holiday_type'];
$holiday_date = $_REQUEST['holiday_date'];
$day = $_REQUEST['day'];
$holiday_occassion = $_REQUEST['holiday_occassion'];
$declared_by_uiet = $_REQUEST['declared_by_uiet'];
$declared_by_govt = $_REQUEST['declared_by_govt'];
$applicable_to = $_REQUEST['applicable_to'];
$created_on = date('Y-m-d');
$created_by = $_SESSION['USER_ID'];
$is_active = 'yes';
$db_handle = new DBController();
$newInsert = $db_handle->tableinsert("INSERT INTO holiday(holiday_id,holiday_type,holiday_date,day,holiday_occassion,declared_by_uiet,declared_by_govt,applicable_to,created_on,created_by,is_active)
VALUES('$holiday_id','$holiday_type','$holiday_date','$day','$holiday_occassion','$declared_by_uiet','$declared_by_govt','$applicable_to','$created_on','$created_by','$is_active')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>