Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードを使用してデータベースにクエリを実行していますが、正常に動作しています
<?php query_posts( 'post_type=gallery&posts_per_page='.$gnum.'&paged='.$paged.'&orderby=title&order=ASC' ); ?>
上記のクエリで WHERE NOT を追加する方法を教えてください。
( WHERE ID != '400' AND ID!='401')
WHERE ID != '400' AND ID!='401'