파일삭제시

// 업로드된 파일이 있다면 파일삭제
$sql2 = " select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ";
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2))
@unlink("$g4[path]/data/file/$bo_table/$row2[bf_file]");
@unlink("$g4[path]/data/file/$bo_table/thumb/$row2[wr_id]");

안녕하세요?
위와같이 unlink를 연속해서 쓰니 아래 unlink에서 $row2[wr_id]값을 가져오지 못하는데
이유가 몬가요?
미리 답변 감사드립니다.
|

댓글 2개

$sql2 = " select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ";
$result2 = sql_query($sql2);
while ($row2 = sql_fetch_array($result2)) {
@unlink("$g4[path]/data/file/$bo_table/$row2[bf_file]");
@unlink("$g4[path]/data/file/$bo_table/thumb/$row2[wr_id]");
}
아 ..이런 기초적인 실수를....감사합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 1,576
14년 전 조회 1,573
14년 전 조회 874
14년 전 조회 964
14년 전 조회 1,001
14년 전 조회 1,373
14년 전 조회 1,063
14년 전 조회 1,535
14년 전 조회 1,535
14년 전 조회 1,521
14년 전 조회 3,558
14년 전 조회 1,662
14년 전 조회 946
14년 전 조회 971
14년 전 조회 950
14년 전 조회 2,380
14년 전 조회 840
14년 전 조회 949
14년 전 조회 1,544
14년 전 조회 884
🐛 버그신고