und wie kann ich das machen?
icvh brauche ja die ID um später genau diese Message ausgeben zu können. Aber wie kann ich das machen, hier mal der rest meines scripts:
<?php
error_reporting(E_ALL);
include ('verbindung.php');
$sql = "SELECT * FROM pns WHERE receiver = '".$_SESSION['user_username']."' ORDER BY time DESC";
$result = mysql_query($sql) or die(mysql_error().'<br />Query: '.$sql);
while ($pns = mysql_fetch_array($result)) {
$id_mail[] = $pns["id"];
$sender[] = $pns["sender"];
$subject[] = $pns["subject"];
$time[] = $pns["time"];
}
for ($i = 0; $i < count($subject); $i++) {?>
<table width="75%">
<tr>
<form action="read.php" method="post">
<td width="15%"><center><?php echo stripslashes(nl2br($sender[$i].""));?></center></td><td width="23%"><center><?php echo stripslashes(nl2br($subject[$i].""));?></center></td><td width="22%"><center><?php echo date("d.m//h:i",$time[$i]);?></center></td><td><center><input type="submit" name="lesen" value="Lesen"><input type="hidden" name="<?php echo stripslashes(nl2br($id_mail[$i].""));?>" value="<?php echo stripslashes(nl2br($id_mail[$i].""));?>"></center></td></tr>
</form>
</tr>
</table>
<?php
}?>