Cita:
El codigo es este:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\azar\index.php on line 22
Código:
Cual es el problema? me mate intentando arreglar, y no pude $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>"; }
Gracias de antemano!