Ciao a tutti devo fare una query che selezioni tutti gli articoli tranne alcuni ho fatto così
come posso fare per semplificare la query?Codice PHP:
SELECT * FROM $TableName WHERE id_articolo!='1' and id_articolo!='2' and id_articolo!='3' and id_articolo!='4' and id_articolo!='5' and id_articolo!='6' and id_articolo!='7' and id_articolo!='8' and id_articolo!='9' ORDER BY id_articolo