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!