목록에서 선택삭제 안 되는 경우
게시판에 올라오는 스팸글들 중 목록에서 선택 삭제가 안 되는 경우가 가끔 있습니다.
delete_all.php 파일에서
// 원글만 구한다.
$sql = " select count(*) as cnt from $write_table
where wr_reply like '$reply%'
and wr_id <> '$write[wr_id]'
and wr_num = '$write[wr_num]'
and wr_is_comment = 0 ";
$sql = " select count(*) as cnt from $write_table
where wr_reply like '$reply%'
and wr_id <> '$write[wr_id]'
and wr_num = '$write[wr_num]'
and wr_is_comment = 0 ";
이 부분을
// 원글만 구한다.
$sql = " select count(*) as cnt from $write_table
where wr_reply like '$reply%'
and wr_reply <> ''
and wr_id <> '$write[wr_id]'
and wr_num = '$write[wr_num]'
and wr_is_comment = 0 ";
$sql = " select count(*) as cnt from $write_table
where wr_reply like '$reply%'
and wr_reply <> ''
and wr_id <> '$write[wr_id]'
and wr_num = '$write[wr_num]'
and wr_is_comment = 0 ";
이렇게 수정하여 해결 했습니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 2개