CasperSecurity
<?php
session_start();
include '../../connection/connection.php';
$brand_id = $_REQUEST['brand_id'];
$brand_short_name = $_REQUEST['brand_short_name'];
$brand_name = $_REQUEST['brand_name'];
$user_id = $_SESSION['USER_ID'];
$date = date("Y-m-d");
$is_active = 'yes';
if(!empty($brand_name)){
$db_handle = new DBController();
$newInsert = $db_handle->runMyUpdate(" UPDATE brand SET brand_short_name='$brand_short_name' ,brand_name='$brand_name',modified_on='$date',modified_by = '$user_id' WHERE brand_id='$brand_id'");
if($newInsert === TRUE){
$_SESSION['ERROR_MSG'] = "Success";
$_SESSION['MSG_ALRT'] = "TRUE";
header('location:../../../web/home/modules/setup/brand/brandgrid.php');
}else{
$_SESSION['ERROR_MSG'] = "Unsuccess";
$_SESSION['MSG_ALRT'] = "FALSE";
header('location:../../../web/home/modules/setup/brand/brandgrid.php');
}
}
?>