|
el codigo que usu es el siguiente: <?php $link = mysql_connect("localhost", "nobody"); mysql_select_db("mydb", $link); $result = mysql_query("SELECT nombre, email FROM agenda", $link); echo "<table border = '1'> \n"; echo "<tr><td>Nombre</td><td>E-Mail</td></tr> \n"; while ($row = mysql_fetch_row($result)){ echo ""<tr><td>$row[0]</td><td>$row[1]</td></tr> \n"; } echo "</table> \n"; ?> Cuando no hay ninguna fila me duvuelve error, pero cuando hay, no hay problema, como puedo controlar eso.
Saludos
|