This code is running, this is the member page after a member login with their account number and password this page will show with correspondent details about their account.
Now I want to add the fields from another table here. 
My first table is "member" then I created another which is "account" I put relation to the mem\_id field of both table in my database in phpmyadmin. 
Now my problem is how to display the relation table in the this page. when a member login with their account number automatically both field in the relational table will display here.

```
<?php  
require_once('connection.php');
$id=$_SESSION['SESS_MEMBER_ID'];
$result3 = mysql_query("SELECT * FROM member where mem_id='$id'");
while($row3 = mysql_fetch_array($result3))
{ 
$fname=$row3['fname'];
$lname=$row3['lname'];
$address=$row3['address'];
$contact=$row3['contact'];
$picture=$row3['picture'];
$gender=$row3['gender'];
}
?>
</h2>
</span>
<table width="597" border="0" cellpadding="0">
  <tr>
    <td height="26" colspan="2" class="style11"></td>
  </tr>
  <tr>
    <td width="166" rowspan="5" class="style11"><div align="left"><img src="style/LOGO  
GRAY.jpg" alt="no image found"" width="129" height="129" border="1" "<?php echo 
$picture ?>/></div></td>
    <td width="126" valign="top" class="style11"><div align="left">First Name:</div>    
</td>
    <td width="297" valign="top" class="style11"><span class="style16"><?php echo 
$fname ?></span></td>
  </tr>
  <tr>
    <td valign="top" class="style11"><div align="left">Last Name:</div></td>
    <td valign="top" class="style11"><span class="style16"><?php echo $lname ?></span>
</td>
  </tr>
  <tr>
    <td valign="top" class="style11"><div align="left">Gender:</div></td>
    <td valign="top" class="style11"><span class="style16"><?php echo $gender ?></span> 
</td>
  </tr>
  <tr>
    <td valign="top" class="style11"><div align="left">Address:</div></td>
    <td valign="top" class="style11"><span class="style16"><?php echo $address ?>
</span></td>
  </tr>
  <tr>
    <td height="42" valign="top" class="style11"><div align="left">Contact No.: </div> 
</td>
    <td valign="top" class="style11"><span class="style16"><?php echo $contact ?>
</span></td>
  </tr>
</table>
        <!--<?php echo $power ?> -->

```

Thank you in advance