새글에서 코멘트제외하기
본문
새글페이지를 보면 코멘트까지 나와서 너무 복잡하더라구요...
new.php 페이지등에서 코멘트를 제외한 새글만 나오게 할수는 없나요?.
답변 1
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' "; <--- 수정
$sql_common = " from $g4[board_new_table] a, $g4[board_table] b, $g4[group_table] c
where a.bo_table = b.bo_table and b.gr_id = c.gr_id and b.bo_use_search = '1' and a.wr_id=a.wr_parent ";
답변을 작성하시기 전에 로그인 해주세요.