hope this works.plz reply
[CODE]
while($row = mysql_fetch_array($result))
{
?>
<tr><td width="10%"></td><td ><img src="images/buldot.gif" alt="" height="6" width="6"><?echo $row['from']?></td>
<td >
<a href="contractor_mail_action_contents.php?mail_id=<? echo $row['mail_id']; ?>">
<? session_start(); include('database.php');
$mailid1 = $_GET['mail_id'];
$query1="SELECT * FROM autoalto_mail where mail_id=$mailid1" ;
$result = mysql_query( $query1 );
while($row = mysql_fetch_array($result))
{

     echo $row['contents'];
    }mysql_close();  ?>[/CODE]
peter_budo commented: Nice suggestion +9