최신글 질문좀드리겠습니다.
본문
<?php
$sql = " select bo_table
from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)
where a.bo_device <> 'pc' ";
if(!$is_admin)
$sql .= " and a.bo_use_cert = '' ";
$sql .= " order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
echo latest('theme/basic', $row['bo_table'], 5, 25);
}
?>
이렇게 사용중인데요 전체 게시판이 다 나오던데요
혹시 특정 test1 test2 test3 게시판만 안나오게 할순 없을까요 ?
답변 2
$sql = " select bo_table
from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id)
where a.bo_device <> 'pc' and a.bo_tabe not in ('test1','test2','test3')";
and a.bo_table not in ('test1','test2','test3')
추가하신거 맞지요?
bo_tabe 오타났네요.. bo_table 저렇게 넣으시면 test1, test2, test3 문자를 제외하고 나머지는 가지고 올텐데...
답변을 작성하시기 전에 로그인 해주세요.