aqui podremos ver los mensajes que tendremos en nuestro buzon de entrada. Y cliqueando en el nobre del mensaje lo podremos leer.
 
mensajes_recibidos.php    
Código PHP:
Ver original- <?php  
- require("config.php"); 
- $nickUsuarioL= $_SESSION['nick'];  
- $accion= $_POST['accion']; 
-   
-   //conexion a la BD MYSQL  
- if($accion == "borrar"){  
-   
- require("config.php"); 
-   
- $SQLborrar = "DELETE FROM mensajes WHERE msgid IN(".implode(', ', $_POST['mens']).")";   
-   
- echo "<font face=\"Tahoma\" size=\"2\"><b>Mensaje Borrado</b>";  
-   
- } else {  
-   
-   
-   
- $asunte = $row['asunto'];  
- $resto = substr("$asunte", 0, 40);  
- $aydi = $row['msgid'];  
-   
- ?><body bgcolor="#C0C000"> 
- <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post" name="2"> 
- <table width="391" border="1" cellpadding="0" cellspacing="0" bordercolor="#498551" bgcolor="#C0C000"> 
- <tr> 
- <td bgcolor="#C0C000" width="48"> 
-   <div align="center"><font face="Tahoma" size="1"> 
-     <input type="checkbox" name="mens[]" value="<?php echo $aydi; ?>"> 
-   </font></div></td>  
- <td width="82" bgcolor="#C0C000"><font face="Tahoma" color="black" size="1"> 
- <center><i><?php echo $row["de"]; ?></i></center> 
- </font></td> 
- <td width="120" bgcolor=#C0C000> 
-   <div align="center"><a href="leer_mensajes.php<?php echo '?id= '.$row['msgid'] . ''; ?>" target="_parent"> 
-     <font face="Tahoma" color="black" size="1"><u><?php echo "$resto.."; ?></u></font></a></div></td>  
- <td bgcolor="#C0C000" width="148"><div align="center"><font face="Tahoma" color="black" size="1"><?php echo $row["fecha"]; ?></font></div></td> 
- </tr> 
- </table>  
- <?php 
- }  
- ?> 
- <br> 
- <table width="214" align="center" cellpadding="2" cellspacing="2" bgcolor="#C0C000">  
-     <tr> 
-     <td width="102"><input type="radio" name="accion" value="borrar"><font face="Tahoma" size="1"> Borrar</font></td>  
-     <td width="20"> 
- </td>  
-    
-     <td width="190"><input type="submit" value="Borrar"></td> 
-     </tr> 
- </table> 
- </form> 
-   
- <?php 
- }  
- ?>