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

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 게시판만 빼고 나머지는 출력.
$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'
그리고.. 적용된다면.. 추가적으로 제외하고 싶은 게시판이 지정되는건지요??
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' ";
이렇게 해보세용
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 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' ";
이렇게 하니까 그룹이 제외 되는군요^^;;
$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' ";
이렇게 하니까 그룹이 제외 되는군요^^;;

하나를 알려주면 열을 아시는군요~!! ^^