채택완료

최신글 질문좀드리겠습니다.

2018-11-12 (월) 11:56:51 3,131

 <?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개 / 댓글 1개

채택된 답변
+20 포인트
Copy
$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')";

답변에 대한 댓글 1개

2018-11-12 (월) 12:35:08
알려주신것처럼했는데
test1','test2','test3')";
위3개 게시판만 나오고 다른게시판이 안나옵니다 ㅠ
Copy
and a.bo_table not in ('test1','test2','test3')

추가하신거 맞지요?

bo_tabe 오타났네요.. bo_table 저렇게 넣으시면 test1, test2, test3  문자를 제외하고 나머지는 가지고 올텐데...

답변을 작성하려면 로그인이 필요합니다.