Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/10/2003, 12:39
Avatar de Reynier
Reynier
 
Fecha de Ingreso: noviembre-2002
Ubicación: Por ahí en algún sitio
Mensajes: 1.844
Antigüedad: 21 años, 5 meses
Puntos: 1
Que le pasa a esto

Hola tengo este código pero me da error
Código PHP:
<? 
 $bd_host 
"localhost"
 
$bd_usuario "root"
 
$bd_password ""
 
$bd_base "tinogrm"

 
$con mysql_connect($bd_host$bd_usuario$bd_password); 
 
mysql_select_db($bd_base$con); 
 
 
$resultComen mysql_query("SELECT * FROM comentarios WHERE idnews='$id' ORDER BY id ASC"); 
  while(
$rowComen mysql_fetch_row($resultComen)) 
   { 
   echo 
$rowComen["nick"];
   echo 
$rowComen["comentario"]; 
   } 
   
mysql_free_result($resultComen);
?>
el error es este
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\apache group\apache\htdocs\jc\news\noticias.php on line 232

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in c:\apache group\apache\htdocs\jc\news\noticias.php on line 237
__________________
Ing. Reynier Pérez Mira