채택완료

새글에서 코멘트제외하기

2014-03-06 (목) 13:44:42 4,877
새글페이지를 보면 코멘트까지 나와서 너무 복잡하더라구요...
new.php 페이지등에서 코멘트를 제외한 새글만 나오게 할수는 없나요?.
|

답변 1개

채택된 답변
+20 포인트
$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 ";

답변을 작성하려면 로그인이 필요합니다.