Salve a tutti come da titolo sto sclerando per realizzare una query per visualizzare, in una pagina PHP a parte solo i titoli di una determinata categoria di articoli, vi riporto sotto la query che però non funge:
$result = mysql_query(“select * FROM sa_posts WHERE post_type =’post’ AND post_category = 0 ORDER BY id desc ” ,$db);
in questo modo mi restituisce tutti gli articoli, se io cambio post_category = 0 e lo metto a post_category = 20 (che è una categoria che presenta articoli) non mi visualizza nulla e non mi da nemmeno errore.
Sapete aiutarmi???
Grazie a tutti