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:
Warning: mysql_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?