CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$ledger_head_id = $_REQUEST['ledger_head_id'];
$account_sub_group_id = $_REQUEST['account_sub_group_id'];
$ledger_head = $_REQUEST['ledger_head'];
$ledger_head_name = $_REQUEST['ledger_head_name'];
$ledger_type = $_REQUEST['ledger_type'];
$modified_on = date("Y-m-d");
$modified_by = $_REQUEST['modified_by'];
$is_active = $_REQUEST['is_active'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE ledger_head SET account_sub_group_id = '$account_sub_group_id' , ledger_head = '$ledger_head' , ledger_head_name = '$ledger_head_name' , ledger_type = '$ledger_type' ,
modified_on = '$modified_on' , modified_by = '$modified_by' , is_active = '$is_active' WHERE ledger_head_id = '$ledger_head_id'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>