CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$host_stock_int_id = $_REQUEST['host_stock_int_id'];
$indent_no = $_REQUEST['indent_no'];
$indent_dt = $_REQUEST['indent_dt'];
$hostel_id = $_REQUEST['hostel_id'];
$description = $_REQUEST['description'];
$reqst_status = $_REQUEST['reqst_status'];
$modified_on = date("Y-m-d");
$modified_by = $_REQUEST['modified_by'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE hostel_stock_indent SET host_stock_int_id = '$host_stock_int_id',indent_no ='$indent_no',indent_dt ='$indent_dt',
hostel_id ='$hostel_id',description='$description',reqst_status='$reqst_status',modified_on='$modified_on',modified_by='$modified_by' WHERE host_stock_int_id = '$host_stock_int_id'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>