Hi just go throgh this code.....here i have created an table.....which is displaying
from ,subject,date.....and i have given an hyperlink to the subject, if i click on that.....i want to display the contents....in second part of the code i am displaying the contents. but here it will display....every subject content .....not only the single subject content.......e.g if there 4 subjects....if i click on the one subject it will disply the contents of all the subject. i want it to display only the signle subject.......how to do it...pls give me some idea..........
<table border="0" cellpadding="1" cellspacing="5" align="center" width="100%" style="border:1px solid #EDEDED;background-color:#f6f6f6">
<tr><td>
<table border="0"><tr>
<th>from</th>
<th>subject</th>
<th>date</th>
</tr>
<?php
include('database.php');
$result = mysql_query("SELECT * FROM autoalto_mail");
while($row = mysql_fetch_array($result))
{
?>
<tr><td><?echo $row['from']?></td>
<td><a href="contractor_mail_action_contents.php"><?echo $row['subject']?></a></td>
<td><?echo $row['date']?></td>
</tr>
<?
}
mysql_close();
<? php
include('database.php');
$result = mysql_query("SELECT * FROM autoalto_mail");
while($row = mysql_fetch_array($result))
{
?>
<? echo $row['contents'] ?>
<?
}
mysql_close();
*/
?>
?>