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

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


    //Getting all users form input details..........
	$fullname = $row["fullname"];
	$email = $row["email"];
	$phone = $row["phone"];
	$country = $row["country"];
	$username = $row["username"];
	//$b_currency = $row["b_currency"];
	$account_type = $row["account_type"];
	$currency = $row["currency"];
	$market_type = $row["market_type"];

	$account_status = $row["account_status"];
	$account_balance = $row["account_balance"];
	$account_deposit = $row["account_deposit"];
	$last_deposit = $row["last_deposit"];
	$total_withdrawal = $row["total_withdrawal"];
	$id = $row["id"];
	$user_id = $row["id"];
}

// if (isset($_SESSION["username"])){
	 
// }else{
//     header('location: ../../login.php');
// }

// if (!isset($_SESSION['username'])){
//  header('location: ../../login.php');
// }else{
   
//}


?>