CasperSecurity
<?php
session_start();
include '../../connection/connection.php';
include '../../../web/connection/functions/encryption.php';
$asset_item_id = $_REQUEST['asset_item_id'];
$physical_verification_date = $_REQUEST['date'];
$remarks = $_REQUEST['remarks'];
$physical_verification_status = $_REQUEST['action'];
$locnn = $_REQUEST['locnn'];
if(!empty($asset_item_id)){
$db_handle = new DBController();
$newInsert = $db_handle->runMyUpdate("UPDATE asset_item SET physical_verification_date = '$physical_verification_date',remarks = '$remarks',physical_verification_status = '$physical_verification_status' WHERE asset_item_id = '$asset_item_id'");
if($newInsert === TRUE){
$_SESSION['ERROR_MSG'] = "Success";
$_SESSION['MSG_ALRT'] = "TRUE";
header('location:../../../web/home/modules/audit/Physical_verification_action/phynext.php?location='.$locnn);
}else{
$_SESSION['ERROR_MSG'] = "Unsuccess";
$_SESSION['MSG_ALRT'] = "FALSE";
header('location:../../../web/home/modules/audit/Physical_verification_action/phynext.php?location='.$locnn);
}
//header('location:../../../web/home/modules/audit/Physical_verification_action/physicalverificationaction.php');
}