Tema: array
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/03/2007, 21:30
Bkwxs
 
Fecha de Ingreso: marzo-2005
Mensajes: 171
Antigüedad: 19 años, 11 meses
Puntos: 0
array

Hola.... tengo este problema:

Cita:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\azar\index.php on line 22
El codigo es este:
Código:
$lista2 = mysql_query("SELECT id FROM categorias WHERE id = $cat LIMIT 0,1");



while ($row1 = mysql_fetch_array($lista2, $db)){
$idcat = $row1['id'];
$nombrecat = $row1['nombre'];
echo "<a href='php.php?cat=".$idcat."'>".$nombre."</a><br>";
	
}
Cual es el problema? me mate intentando arreglar, y no pude

Gracias de antemano!