CasperSecurity
<?php
session_start();
include '../../../../web/connection/connection.php';
$user_role_id = $_REQUEST['user_role_id'];
$user_id = $_REQUEST['user_id'];
$role_id = $_REQUEST['role_id'];
$from_date = $_REQUEST['from_date'];
$to_date = $_REQUEST['to_date'];
$active_status = $_REQUEST['active_status'];
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE user_role SET user_role_id = '$user_role_id',user_id ='$user_id',role_id ='$role_id',
from_date ='$from_date',to_date='$to_date',active_status='$active_status' WHERE user_role_id = '$host'");
if($newUpdate == TRUE){
echo 'Data updated Successfully';
}else{
echo 'Not updated' ;
}
?>