
04/04/2004, 18:48
|
| | Fecha de Ingreso: diciembre-2002
Mensajes: 15
Antigüedad: 22 años, 2 meses Puntos: 0 | |
me tira este error a que se debe? hola cuando ejecuto la pagina me tira este error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\foxserv\www\foro\listahijos.php on line 33
espero me ayuden
y este es el script
<?php
if ($abierto = mysql_connect ("localhost","user","pass")){
$leer = "SELECT ID,Autor,Fecha,Email,Mensaje FROM temas WHERE Padre=$var";
$datos = mysql_db_query ("Foro",$leer);
print("<table align='center' width='50%' border='0'>");
while ($fila = mysql_fetch_array ($datos)) {
print ("<tr><td ><font size='4' color='white'>Autor :</font></td><td > ".$fila[1]."</td></tr>
<tr><td ><font size='4' color='white'>Fecha : </font></td><td>".$fila[2]."</td></tr>
<tr><td ><font size='4' color='white'>E-mail : </font></td><td>".$fila[3]."</td></tr>
<tr><td ><font size='4' color='white'>Mensaje : </font></td><td>".$fila[4]."</td></tr><tr ><td colspan='2'><hr></td></tr>");
}
print ("</table>");
} else {
print ("No se puede conectar. Intente nuevamente");
}
?>
__________________ thekiller |