목록에서 선택삭제 안 되는 경우 정보
목록에서 선택삭제 안 되는 경우본문
게시판에 올라오는 스팸글들 중 목록에서 선택 삭제가 안 되는 경우가 가끔 있습니다.
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
2
댓글 2개

감사합니다.

감사합니다 ~