글 복사시 원하는 게시판만 출력하기.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

글 복사시 원하는 게시판만 출력하기.. 정보

글 복사시 원하는 게시판만 출력하기..

본문

안녕하십니까.
 
글 복사할때 전체 게시판 선택 목록이 나오잖습니까..
 
그걸.. 일목요연하게 하기위해서.. 원하는 게시판만 출력되게 지정할려고
 
하는데.. 어떻게 해야할지...
 
답변 좀 부탁드립니다..
 
 
  • 복사

댓글 전체

bbs/move.php 34라인쯤...

$sql = " select *
          from $g4[board_table] a,
                $g4[group_table] b
          where a.gr_id = b.gr_id
            and bo_table <> '$bo_table' and b.bo_table != 'test' ";

이렇게 하면 test 게시판만 빼고 나머지는 출력.
적용시켜 봤더니.. 이렇습니다

select * from g4_board a, g4_group b where a.gr_id = b.gr_id and bo_table <> 'work' and b.bo_table != 'test' order by a.gr_id, a.bo_table

1054 : Unknown column 'b.bo_table' in 'where clause'

그리고.. 적용된다면.. 추가적으로 제외하고 싶은 게시판이 지정되는건지요??
$sql = " select *
          from $g4[board_table] a,
                $g4[group_table] b
          where a.gr_id = b.gr_id
            and bo_table <> '$bo_table' and a.bo_table != 'test' ";

이렇게 해보세용
아~~ 알았습니다~!!

$sql = " select *
          from $g4[board_table] a,
                $g4[group_table] b
          where a.gr_id = b.gr_id
            and bo_table <> '$bo_table' and a.bo_table != 'test1' and a.bo_table != 'test2' ";

이런식이군요^^;;
오~~ 응용하는 재미가 쏠쏠하군요~~

$sql = " select *
          from $g4[board_table] a,
                $g4[group_table] b
          where a.gr_id = b.gr_id
            and bo_table <> '$bo_table' and b.gr_id != 'news' ";

이렇게 하니까 그룹이 제외 되는군요^^;;
© SIRSOFT
현재 페이지 제일 처음으로