기존에 특정 카테고리를 제외하는 코드를
$sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' and ca_id not like 'b0' order by ca_id";
이렇게 썼었는데요
b0 카테고리 말고도 여러 카테고리 노출을 제외시키고 싶어서요
$sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' and ca_id not like ('b0', '60', '6010', '6020', '6030', '6040', '6050','6060') order by ca_id";
이렇게 쓰는게 맞나요?
답변 2개 / 댓글 4개
채택된 답변
+20 포인트
답변에 대한 댓글 3개
답변에 대한 댓글 1개
으 제가 프로그램 쪽은 잘 몰라서 원래 쓰던 것도 물어물어 사용한 거 거든요 ㅠㅠ
제가 적어놓은게 맞다는건가요?
아니면
$sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' and ca_id not in ('b0', '60', '6010', '6020', '6030', '6040', '6050','6060') order by ca_id";
이렇게 쓰라는건가요? ㅠㅠ
제가 적어놓은게 맞다는건가요?
아니면
$sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' and ca_id not in ('b0', '60', '6010', '6020', '6030', '6040', '6050','6060') order by ca_id";
이렇게 쓰라는건가요? ㅠㅠ
답변을 작성하려면 로그인이 필요합니다.