섬네일 오류

· 2013-10-10 (목) 20:57:01 · 1627 · 4
첫번째 와 두번째 사진을 올려놓고

첫번째 사진을 삭제하면 두번째 사진이 섬네일에 보여져야 하는데

엑박이 뜨네요...

또하나는 1대1로 사진 파일 변경시 최신글 노출에서는 섬네일이 변경되는데

실제 게시판에서는 변경이 안됩니다 ㅠㅠ

어디서 잘못된걸까요




@unlink("$g4[path]/data/file/$bo_table/$row[bf_file]");
@unlink("$g4[path]/data/file/$bo_table/board_thumb/$write[wr_id]"); //썸네일 삭제
@unlink("$g4[path]/data/file/$bo_table/latest_thumb/$write[wr_id]"); //최근게시물 썸네일 삭제

|

댓글 4개

위 코드를 delete 화일에 넣은 것인가요?
그렇다면 {}로 둘러싸지 않았을 것 같은 느낌이네요
{
// 원글 포인트 삭제
// if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
insert_point($row[mb_id], $board[bo_write_point] * (-1), "$board[bo_subject] $write[wr_subject] 글삭제");

// 업로드된 파일이 있다면 파일삭제
$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/$write[wr_id]"); //썸네일 삭제
@unlink("$g4[path]/data/file/$bo_table/$write[wr_id]"); //최근게시물 썸네일 삭제



// 파일테이블 행 삭제
sql_query(" delete from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$row[wr_id]' ");

$count_write++;
}


들어가 있어요 ㅠㅠ
while ($row2 = sql_fetch_array($result2)) { //<-----------------------
@unlink("$g4[path]/data/file/$bo_table/$row2[bf_file]");
@unlink("$g4[path]/data/file/$bo_table/thumb/$write[wr_id]"); //썸네일 삭제
@unlink("$g4[path]/data/file/$bo_table/$write[wr_id]"); //최근게시물 썸네일 삭제
}//<--------------
컹....
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-10-11 조회 1,705
13-10-11 조회 1,646
13-10-11 조회 2,666
13-10-11 조회 1,742
13-10-10 조회 898
13-10-10 조회 1,121
13-10-10 조회 997
13-10-10 조회 1,654
13-10-10 조회 1,628
13-10-10 조회 1,908
13-10-10 조회 1,609
13-10-10 조회 1,105
13-10-10 조회 1,148
13-10-10 조회 1,062
13-10-10 조회 1,348
13-10-10 조회 1,042
13-10-10 조회 1,708
13-10-10 조회 1,565
13-10-10 조회 1,406
13-10-10 조회 1,668