CasperSecurity
<?php
session_start();
include'../../../../../connection/connection.php';
$connection = new createConnection();
$connection->connect();
$fee_item_id = $_REQUEST['fee_item_id'];
$fee_item_name = $_REQUEST['fee_item_name'];
$fee_item_short_name = $_REQUEST['fee_item_short_name'];
$duration = $_REQUEST['duration'];
$refundable = $_REQUEST['refundable'];
$ledger_head_id = $_REQUEST['ledger_head_id'];
$applicable_type = $_REQUEST['applicable_type'];
$Created_on = date('Y-m-d');
$created_by = $_REQUEST ['created_by'];
$Is_active = $_REQUEST['is_active'];
/*
$newInsert = "INSERT INTO fee_item(fee_item_id,fee_item_name,fee_item_short_name,duration,refundable,ledger_head_id,applicable_type,Created_on,created_by,Is_active)
VALUES('$fee_item_id','$fee_item_name','$fee_item_short_name','$duration','$refundable','$ledger_head_id','$applicable_type','$Created_on','$created_by','$Is_active')";
if(mysqli_query($connection->myconn,$newInsert) === TRUE ) {
$_SESSION['ERROR_MSG'] = "Data Insert Successfully";
$_SESSION['MSG_ALRT'] = "TRUE";
header('location:fee_item.php');
}else{
$_SESSION['ERROR_MSG'] = "Unsuccess";
$_SESSION['MSG_ALRT'] = "FALSE";
header('location:fee_item.php');
}
?>