전체 최신글
bbs/new.php
페이지 사용시 코멘트/특정그룹/특정게시판 제외를 할수있는지요?
bbs/new.php
페이지 사용시 코멘트/특정그룹/특정게시판 제외를 할수있는지요?
댓글 4개
16번째 밑에
$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 "; //코멘트제외
까까님 감사합니다^^
$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 "; //코멘트제외
까까님 감사합니다^^
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기