댓글 삭제 정보
댓글 삭제본문
댓글 전체
한 게시판의 모든 코멘트를 삭제하려는 건가요?
만약 그렇다면...
$bo_table = "테이블명";
sql_query("delete from `$g4[write_prefix]$bo_table` where wr_is_comment='1'");
이렇게 하면 간단하게 될 것 같습니다.
만약 한 게시물의 코멘트만 삭제한다면
$bo_table = "테이블명";
$wr_id = "글번호"
sql_query("delete from `$g4[write_prefix]$bo_table` where wr_is_comment='1' AND wr_parent='$wr_id'");
만약 그렇다면...
$bo_table = "테이블명";
sql_query("delete from `$g4[write_prefix]$bo_table` where wr_is_comment='1'");
이렇게 하면 간단하게 될 것 같습니다.
만약 한 게시물의 코멘트만 삭제한다면
$bo_table = "테이블명";
$wr_id = "글번호"
sql_query("delete from `$g4[write_prefix]$bo_table` where wr_is_comment='1' AND wr_parent='$wr_id'");