CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$department_id = $_REQUEST['department_id'];
$department_name = $_REQUEST['department_name'];
$department_short_name = $_REQUEST['department_short_name'];
$created_on = date('Y-m-d');
$created_by = $_SESSION['USER_ID'];
$is_active = 'yes';
$db_handle = new DBController();
$newInsert = $db_handle->tableinsert("INSERT INTO department(department_id,department_name,department_short_name,created_on,created_by,is_active)
VALUES('$department_id','$department_name','$department_short_name','$created_on','$created_by','$is_active')");
if($newInsert == TRUE){
echo 'Data Inserted Successfully';
}else{
echo 'Not Inserted' ;
}
?>