$_SESSION["userid"]; session_start(); if($_SESSION["userid"]=="") { header("location:index.php"); } $ses_ma_id=$_SESSION["userid"]; $browsessionid=session_id(); ?> $sessionid_free=$_SESSION["userid"]; ?> $objitem = mysql_query("SELECT * from shop_user where user_id='$sessionid_free'"); $Fetitem = mysql_fetch_array($objitem); $cust_id=$Fetitem['user_id']; $country=$Fetitem['country']; $new_sataus=$Fetitem['new_status']; ?> $browsessionid=session_id(); $objqrynewsubee = "SELECT SUM(amount) AS amtTotal FROM tbl_appointment where session_id='$browsessionid' and status='0'"; $objResultnewsubee = mysql_query($objqrynewsubee); $Fetchnewww = mysql_fetch_array($objResultnewsubee); $subtotal=$Fetchnewww['amtTotal']; $tx= "Txn" . rand(10000,99999999); $me_kay="iz3S9EJU"; $amount=$subtotal; $fname=$Fetitem['name']; $pinfo=$Fetitem['name']; $email=$Fetitem['email']; $udf5="BOLT_KIT_PHP7"; $salt="BwgrLSotC7"; $hash=hash('sha512', $me_kay.'|'.$me_kay.'|'.$amount.'|'.$pinfo.'|'.$fname.'|'.$email.'|||||'.$udf5.'||||||'.$salt); ?> $_SESSION["userid"]; session_start(); /*if($_SESSION["userid"]=="") { header("location:index.php"); }*/ $sessionid_free=$_SESSION["userid"]; ?>