|
|
|
10-12-04
|
조회 1,691
|
|
|
|
10-12-04
|
조회 1,799
|
|
|
|
10-12-04
|
조회 1,947
|
|
|
|
10-12-04
|
조회 1,723
|
|
|
|
10-12-04
|
조회 1,650
|
|
|
|
10-12-04
|
조회 1,632
|
|
|
|
10-12-04
|
조회 1,110
|
|
|
|
10-12-04
|
조회 1,688
|
|
|
|
10-12-04
|
조회 1,725
|
|
|
|
10-12-04
|
조회 7,011
|
|
|
|
10-12-04
|
조회 1,137
|
|
|
|
10-12-03
|
조회 867
|
|
|
|
10-12-03
|
조회 1,562
|
|
|
|
10-12-03
|
조회 1,080
|
|
|
|
10-12-03
|
조회 896
|
|
|
|
10-12-03
|
조회 1,044
|
|
|
|
10-12-03
|
조회 930
|
|
|
|
10-12-03
|
조회 1,175
|
|
|
|
10-12-03
|
조회 1,726
|
|
|
|
10-12-03
|
조회 1,548
|
댓글 4개
까까님 아시면 좀 올려주시면 안될까요?
$sql_common .= " and b.wr_is_comment = '0' "; //코멘트제외
$sql_common .= " and a.bo_table != '제외테이블' "; //테이블 제외
$sql_common .= " and b.gr_id != '제외그룹' "; //그룹제외
이런식이면 될듯요;;
$sql_common .= " and b.wr_is_comment = '0' "; //코멘트제외
$sql_common .= " and a.bo_table != '1234' "; //테이블 제외
$sql_common .= " and b.gr_id != 'kkk' "; //그룹제외
이런에러가떠서
select count(*) as cnt from g4_board_new a, g4_board b, g4_group c where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and b.wr_is_comment = '0' and a.bo_table != '1234' and b.gr_id != 'kkk'
1054 : Unknown column 'b.wr_is_comment' in 'where clause'
16번째 밑에 아래처럼 넣으니 잘되네요^^
$sql_common .= " and b.gr_id != 'kkk' "; //그룹제외
$sql_common .= " and a.bo_table != '1234' "; //테이블 제외
$sql_common .= " and a.wr_id = a.wr_parent "; //코멘트제외
까까님 감사합니다^^