<?
$user   = $_SESSION['user'];
$brcode = $_SESSION['brcode'];
//$db=mysqli_connect("localhost","gen4psnauto_psnauto","psn@web#");
$db=mysqli_connect("localhost","localhost","!@Eich3r#");
//mysqli_select_db($db,"gen4psnauto_psn_forcedb2425");
mysqli_select_db($db,"forcedb2526");
if(strlen($user)>0)
{
    date_default_timezone_set("Asia/Calcutta");
    $mdatetime = date('Y-m-d h:i:s');
    $sql1="update bruser set ph = '$mdatetime' where brcode = '$brcode' and username = '$user' ";
	mysqli_query($db,$sql1) or die('Insert Err:'.mysqli_error($db));
}
?>