diff --git a/shop/itemqaformupdate.php b/shop/itemqaformupdate.php index d6ea5c898..408005e09 100644 --- a/shop/itemqaformupdate.php +++ b/shop/itemqaformupdate.php @@ -67,7 +67,25 @@ else if ($w == "d") alert("답변이 있는 상품문의는 삭제하실 수 없습니다."); } - //$sql = " delete from {$g5['g5_shop_item_qa_table']} where mb_id = '{$member['mb_id']}' and iq_id = '$iq_id' "; + // 에디터로 첨부된 이미지 삭제 + $sql = " select iq_question from {$g5['g5_shop_item_qa_table']} where iq_id = '$iq_id' and md5(concat(iq_id,iq_time,iq_ip)) = '{$hash}' "; + $row = sql_fetch($sql); + + $imgs = get_editor_image($row['iq_question']); + + for($i=0;$i