post the code in this file : members/readMsg.php here
$includes[title]="Read Message";
$id = mysql_real_escape_string(intval($_REQUEST['id']));
$sql=$Db1->query("SELECT * FROM messages WHERE ( (username='{$username}' and to_status='1') or (`from`='{$username}' and from_status='1')) and id='{$id}'");
if($Db1->num_rows() > 0) {
$temp = $Db1->fetch_array($sql);
if($temp['from'] == $username) $own=false;
elseif($temp['username'] == $username) $own=true;
if($own == true) $Db1->query("UPDATE messages SET `read`='1' WHERE id='$id'");
$includes[content]="
<div style=\"float: right;\">
<a href=\"index.php?view=account&ac=messages&".$url_variables."\">Inbox</a> |
".($own == true?"<a href=\"index.php?view=account&ac=composeMsg&reply=$id&".$url_variables."\">Reply</a> | ":
"<a href=\"index.php?view=account&ac=sentmessages&".$url_variables."\">Outbox</a> | ")."
<a href=\"index.php?view=account&ac=deleteMsg&id=$id&".$url_variables."\" onclick=\"return confirm('Are you sure?')\">Delete</a>
</div>
<strong>From: </strong> $temp[from]<br />
<strong>Date: </strong> ".date('m/d/y', mktime(0,0,$temp[dsub],1,1,1970))."
<table class=\"tableStyle3\">
<tr>
<td class=\"tableHead\"><img src=\"images/icons/mail.gif\">".stripslashes($temp[title])."</td>
</tr>
<tr>
<td>".nl2br(stripslashes($temp[message]))."</td>
</tr>
</table>
";
}
else {
$includes[content]="
<b>Error!</b><br />
There was an error loading the requested message!
";
}
?>
Hope thats what ya wanted!!