<?php
	
	$rows = sql($DBH, "SELECT * FROM tbl_user where hash = ?", array($SESS_HASH_USER,), "rows");							
		foreach($rows as $row)
		{	
		$name		=	$row['name'];
		$surname	=	$row['surname'];
		$profile_pic	=	$row['profile_pic'];
		$email		=	$row['email'];
		$bank_name	=	$row['bank_name'];
		$account_name	=	$row['account_name'];
		$account_number	=	$row['account_number'];
		$phone		=	$row['phone'];
		$phone_two	=	$row['phone2'];
		$country	=	$row['country'];
		$location	=	$row['location'];
		$dob		=	$row['dob'];
		$gender		=	$row['gender'];
                $user_registration_date	= $row['registration_date'];
                $user_hash	 	= $row['hash'];
                $user_type	 	= $row['s_type'];
                $user_status	 	= $row['status'];
                $moderator	 	= $row['moderator'];
                
		}
	if ($user_status != "Active") {
         redirect('index.php');
         exit;
         }
?>