Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/10/2009, 11:25
kirst
 
Fecha de Ingreso: septiembre-2009
Mensajes: 230
Antigüedad: 14 años, 7 meses
Puntos: 2
Respuesta: [Ayuda] GET & Cat + MySQL

Si me sirvió, pero ahora tengo otro inconveniente:

Código PHP:
if (isset($_GET['cat']))
    {
$arrNoticias = array();
$query "SELECT idNoticia, titulo, copete FROM `noticias` WHERE categorias.idCategorias " $_GET['cat'] . " ORDER BY fPublicacion DESC";
$resultado mysql_query ($query$dbConn);
while ( 
$row mysql_fetch_assoc ($resultado))
{
    
array_push$arrNoticias,$row );

me dice:

Código PHP:
Warningmysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:AppServwww2mdeliveryindex.php on line 33 
cuando pongo index.php?cat=1

1 > Pizza
2 > Empanadas
Yo selecciono el idCategoria, es númerico. Alguna idea?