error_reporting(0); session_start(); extract($_REQUEST); include('dbconfig.php'); $sqla ="SELECT * from settings where setting_id=1"; $resulta = $conn->query($sqla); if($rowa = $resulta->fetch_assoc()) { $amobile=$rowa['setting_mobile_number']; $amobile2=$rowa['setting_mobile_number2']; $aemail=$rowa['setting_email']; $ahappyclients=$rowa['setting_happy_clients']; $afinishedprojects=$rowa['setting_finished_projects']; $aagentstotal=$rowa['setting_agents']; $arunningprojects=$rowa['setting_running_projects']; } if(isset($_SESSION['login_id'])) { if($_SESSION['login_type']=='Agent'){ $login_id = $_SESSION['login_id']; $sqll ="SELECT * from agents where agents_id=$login_id"; $resultl = $conn->query($sqll); if($rowl = $resultl->fetch_assoc()) { $agents_type=$rowl['agents_type']; $agents_name=$rowl['agents_name']; $agents_email=$rowl['agents_email']; $agents_lastname=$rowl['agents_lastname']; $agents_username=$rowl['agents_username']; $agents_mobile=$rowl['agents_mobile']; $agents_city=$rowl['agents_city']; $agents_photo=$rowl['agents_photo']; $agents_pay_status=$rowl['agents_pay_status']; $agents_experience=$rowl['agents_experience']; $agents_state=$rowl['agents_state']; $agents_district=$rowl['agents_district']; $agents_dob=$rowl['agents_dob']; } } if($_SESSION['login_type']=='Member'){ $login_id = $_SESSION['login_id']; $sqll ="SELECT * from members where members_id=$login_id"; $resultl = $conn->query($sqll); if($rowl = $resultl->fetch_assoc()) { $members_type=$rowl['members_type']; $members_email=$rowl['members_email']; $members_name=$rowl['members_name']; $members_lastname=$rowl['members_lastname']; $members_username=$rowl['members_username']; $members_mobile=$rowl['members_mobile']; $members_city=$rowl['members_city']; $members_photo=$rowl['members_photo']; $members_state=$rowl['members_state']; $members_district=$rowl['members_district']; $members_dob=$rowl['members_dob']; } } if($_SESSION['login_type']=='Customer'){ $login_id = $_SESSION['login_id']; $sqll ="SELECT * from customers where customers_id=$login_id"; $resultl = $conn->query($sqll); if($rowl = $resultl->fetch_assoc()) { $customers_type=$rowl['customers_type']; $customers_email=$rowl['customers_email']; $customers_name=$rowl['customers_name']; $customers_lastname=$rowl['customers_lastname']; $customers_username=$rowl['customers_username']; $customers_mobile=$rowl['customers_mobile']; $customers_city=$rowl['customers_city']; $customers_photo=$rowl['customers_photo']; $customers_state=$rowl['customers_state']; $customers_district=$rowl['customers_district']; $customers_dob=$rowl['customers_dob']; } } if($_SESSION['login_type']=='Client'){ $login_id = $_SESSION['login_id']; $sqll ="SELECT * from clients where clients_id=$login_id"; $resultl = $conn->query($sqll); if($rowl = $resultl->fetch_assoc()) { $clients_type=$rowl['clients_type']; $clients_email=$rowl['clients_email']; $clients_name=$rowl['clients_name']; $clients_lastname=$rowl['clients_lastname']; $clients_username=$rowl['clients_username']; $clients_mobile=$rowl['clients_mobile']; $clients_city=$rowl['clients_city']; $clients_photo=$rowl['clients_photo']; $clients_state=$rowl['clients_state']; $clients_district=$rowl['clients_district']; $clients_dob=$rowl['clients_dob']; } } } $agent_sqlt = $conn->query("SELECT * FROM `agents` WHERE agents_status=1"); $agent_countt = $agent_sqlt->num_rows; $member_sqlt = $conn->query("SELECT * FROM `members` WHERE members_status=1"); $member_countt = $member_sqlt->num_rows; $customer_sqlt = $conn->query("SELECT * FROM `customers` WHERE customers_status=1"); $customer_countt = $customer_sqlt->num_rows; $client_sqlt = $conn->query("SELECT * FROM `clients` WHERE clients_status=1"); $client_countt = $client_sqlt->num_rows; ?> LUXURYORB - Index
logo_icon