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

$query=mysql_query("select * from customer where userID='$user'");
$display=mysql_fetch_array($query);
$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'];
$gender = $display['gender'];
$birth = $display['birthday'];

?>
<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>Account Information</b></td>
		</tr>
	<tr>
		<td class="inner" width=40%>User ID </td>
		<td class="inner" width=50%><?php echo $ID; ?></td>
		<td class="inner" align=center width=10%><a href="updateUserID.php">Edit</a></td>
		</tr>
	<tr>
		<td class="inner" >Password </td>
		<td class="inner" >********</td>
		<td class="inner" align=center><a href="updatePassword.php">Edit</a></td>
		</tr>
	<tr>
		<td class="inner" >Gender <br/>Birthday</td>
		<td class="inner" ><?php echo $gender;?><br/><?php echo $birth;?></td>
		<td class="inner" align=center valign=top><a href="updateInfo.php">Edit</a></td>
		</tr>
	</table>
	<br/>
	<table width=100% border=1 class="personalInfo" cellspacing=1>
	<tr>
		<td class="innerhead" colspan=3><b>Email And Contact Information</b></td>
		</tr>
	<tr>
		<td class="inner" width=40%>Email Address </td>
		<td class="inner" width=50%><?php echo $email; ?></td>
		<td class="inner" align=center width=10%><a href="updateEmail.php">Edit</a></td>
		</tr>
	<tr>
		<td class="inner" >Contact No </td>
		<td class="inner" ><?php echo $phone;?></td>
		<td class="inner" align=center ><a href="">Edit</a></td>
		</tr>
	<tr>
		<td class="inner" valign=top >Register Name and Address </td>
		<td class="inner" ><?php echo $fname." ".$lname;?><br/><?php echo $street."<br/>".$postcode." ".$state."<br/>".$country;?></td>
		<td class="inner" align=center valign=top><a href="accountAddress.php">Edit</a></td>
		</tr>
	</table>
	
	</td>
	</tr>
	</table>


</body>
</html>