<?php
include("sessionLogin.php");
include("connect.php");
$user=$_SESSION['client'];

$query=mysql_query("select * from customer where userID='$user'");
$display=mysql_fetch_array($query);
$no = $display['no'];
$ID = $display['userID'];
$email = $display['email'];
$fname = $display['fname'];
$lname = $display['lname'];
$street = $display['street'];
$postcode = $display['postcode'];
$state = $display['state'];
$country = $display['country'];
$phone = $display['phone'];

$query2=mysql_query("select * from shipping where user='$no'");
$display2=mysql_fetch_array($query2);
$fname2 = $display2['fname'];
$lname2 = $display2['lname'];
$street2 = $display2['street'];
$postcode2 = $display2['postcode'];
$state2 = $display2['state'];
$country2 = $display2['country'];

?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="website.css" />
</head>
<body class="client">
<h3>Account</h3>
<table border=0 width="880" cellpadding=3>
<tr>
	<td width=200 valign=top>
	<p class="flip" id="setting">&nbsp;My Account</p>
	<p class="flipA" >
	<a href="account.php">Personal Profile</a><br/>
	>><a href="accountAddress.php">Addresses</a>
	
	
	</p>
	
	</td>
	<td valign=top>
	<table width=100% border=1 class="personalInfo" cellspacing=1>
	<tr>
		<td class="innerhead" colspan=3><b>Addresses</b></td>
		</tr>
	<tr>
		<td class="inner" width=40% valign=top><b>Registration Address:</b><br/>Your main contact address</td>
		<td class="inner" width=50%><?php echo $fname." ".$lname;?><br/><?php echo $street."<br/>".$postcode." ".$state."<br/>".$country;?><br/></td>
		<td class="inner" align=center width=10% valign=top><a href="updateAddress.php">Edit</a></td>
		</tr>
	<tr>
		<td class="inner" valign=top><b>Primary shipping address</b><br/>Your main shipping address and purchase</td>
		<td class="inner" ><?php echo $fname2." ".$lname2;?><br/><?php echo $street2."<br/>".$postcode2." ".$state2."<br/>".$country2;?><br/></td>
		<td class="inner" align=center valign=top><a href="updateShipping.php">Edit</a></td>
		</tr>
	</table>
	<br/>
	
	
	</td>
	</tr>
	</table>


</body>
</html>