특정게시판을 빼고 나오게 하고 싶은데요....
<?php
$count = count($list);
for ($i=0; $i<$count; $i++) {
//seo 특정게시판 빼기
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b where a.bo_table = b.bo_table and b.bo_use_search = 1 and a.bo_table != 'aaa' ";
?>
이렇게 하니....aaa게시판을 안나오는데....
bbb 게시판도 안나오게 하고싶은데....
<?php
$count = count($list);
for ($i=0; $i<$count; $i++) {
//seo 특정게시판 빼기
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b where a.bo_table = b.bo_table and b.bo_use_search = 1 and a.bo_table != 'aaa' || a.bo_table !='bbb' ";
?>
빨간색으로 한부분을 추가했는데...안되는데...
잘못된부분을 알려주시면 감사하겠습니다....
답변 2개
매번 소스를 수정하시기 귀찮으시다면, 아래를 참고해 보시기 바랍니다. ^^
a.bo_table != 'aaa' || a.bo_table !='bbb'
a.bo_table not in ('aaa','bbb')
답변을 작성하려면 로그인이 필요합니다.