<?php include("includes/config.php"); ?>
<?php include("includes/functions.php"); ?>



<?php
if(isset($_SESSION["u_dbid"])){
	$u_dbid = $_SESSION["u_dbid"];
	$query = mysqli_query($conn, "SELECT * FROM users WHERE id = '$u_dbid'");
	$row = mysqli_fetch_assoc($query);


    //Getting all users form input details..........
	$firstname = $row["b_firstname"];
	$lastname = $row["b_lastname"];
	$middlename = $row["b_middlename"];
	$phone = $row["b_phone"];
	$email = $row["b_email"];
	$gender = $row["b_gender"];
	$b_currency = $row["b_currency"];
	$country = $row["b_country"];
	$state = $row["b_state"];
	$city = $row["b_city"];
	$zipcode = $row["b_zipcode"];
	$address1 = $row["b_address"];
	$account_type = $row["b_account_type"];
	$user_photo = $row["b_profile_pics"];
	$account_number = $row["b_account_number"];
	//$status = $row["status"];
	$amount = $row["b_amount"];
	$account_balance = $row["b_amount"];
	$b_password = $row["b_password"];
	
	$db_total_amount = $row["b_amount"];
	//$support_pin = $row["support_pin"];
	//$email_verify = $row["email_verify"];
	$account_id = $row["account_id"];
	$db_account_pin = $row["account_pin"];
	$account_status = $row["account_status"];
	
	$amount = number_format($amount, 2);


	$visa_card_balance = $row["visa_card_balance"];
	$maestro_card_balance = $row["maestro_card_balance"];
	$amex_card_balance = $row["amex_card_balance"];
	$discover_card_balance = $row["discover_card_balance"];
	$dbcard_status = $row["card_status"];

	$car_loan_balance = $row["car_loan_balance"];
	$home_loan_balance = $row["home_loan_balance"];
	$business_loan_balance = $row["business_loan_balance"];
	$medical_loan_balance = $row["medical_loan_balance"];
	$dbloan_status = $row["loan_status"];
	
	
	
	//CODES
	$query = mysqli_query($conn, "SELECT * FROM admin");
                 $row = mysqli_fetch_assoc($query);
                 
                 $db_cot_code = $row["cot_code"];
                 $db_aml_code = $row["aml_code"];
                 $db_nrt_code = $row["nrt_code"];
                 
                 $db_Icot_code = $row["Icot_code"];
                 $db_Iaml_code = $row["Iaml_code"];
                 $db_Inrt_code = $row["Inrt_code"];

	

}else{
	$firstname = "uhasdhuwsnhju";
}
?>
<!-- Smartsupp Live Chat script -->
<script type="text/javascript">
var _smartsupp = _smartsupp || {};
_smartsupp.key = '41f3835921b3a4537b17c1d5d70090e770d4085c';
window.smartsupp||(function(d) {
  var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
  s=d.getElementsByTagName('script')[0];c=d.createElement('script');
  c.type='text/javascript';c.charset='utf-8';c.async=true;
  c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
</script>
<noscript> Powered by <a href=“https://www.smartsupp.com” target=“_blank”>Smartsupp</a></noscript>
