선택삭제 문제 생기는 경우
더시민
0
1518
0
2021.12.01 13:26
bbs/delete_all.php 에서 빨간색 추가해준다
$reply = substr($write['wr_reply'], 0, $len);
if(!$reply) $reply = "A";//맨상위일때 추가조건
// 원글만 구한다.
$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 ";
$row = sql_fetch($sql);
if ($row['cnt']) continue;