Hola que tal mmmmmmmmm
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
pruebalo asi y nos comentas:
Código PHP:
<?php
require('conexion.php');
$query = "SELECT * FROM mprivados";
$rs = mysql_query($query, $conexion);
$row1 = mysql_fetch_array($rs)
if(empty($_SESSION['nick']) && empty($_SESSION['password']))
{
echo "<center>Debes estar registrado/logueado para poder ver y enviar mensajes</center>";
}
else
{
if(mysql_num_rows($rs) != 0)
{
if($_SESSION['nick'] == $row1["receptor"])
{
echo '
<form name="formi">
<table border=0 cellspacing=0 cellpadding=1>
<tr><td width=10>
<td width=90 align=center>
<b><strong><font size=1>Autor</font></strong></b>
<td width=90 align=center>
<b><strong><font size=1>Sujeto</font></strong></b>
<td width=120 align=center>
<b><strong><font size=1>Fecha de envío</font></strong></b>
';
while ($row = mysql_fetch_array($rs))
{
echo '
<tr><td width=10 align=center>
<input type="checkbox">
<td width=90 align=center class=Td1>
'.$row["autor"].'</td>
<td width=90 align=center class=td1>
'.$row["sujeto"].'</td>
<td width=120 align=center class=td1>
Fecha de envío
</td>
';
}
echo '</table><br><br>';
echo '||<a href="eliminarmsg.php">Eliminar mensajes marcados</a>|| ';
echo '||<a href="deleteall.php">Eliminar todo</a>|| ';
echo '||<input type="radio" name="checker" onclick="check(this.form)">Marcar todo||<br>';
echo '||<input type="radio" name="nocheck" onclick="descheck(this.form)">Desmarcar todo||';
echo '</form>';
}
}
}
?>
Suerte y Salu2.
Bye