미채택 완료

첨부파일이 없을때

2014-04-02 (수) 18:53:42 4,680
   <?
        // 파일 출력
        for ($i=0; $i<=count($view[file]); $i++) {
            if ($view[file][$i][view])
                echo $view[file][$i][view] . "<p>";
        }
        ?>
 
첨부파일이 있었다가
 
   @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/latest_thumb/$write[wr_id]"); //최근게시물 썸네일 삭제
 
업데이트로 사용하니 엑박이 뜨더라구요
 
엑박말고 noimage를 활용할 방법은 없을까요? ㅠㅠ
 
$img = "<img src='{$board_skin_path}/img/noimage.gif' width={$img_width} height={$img_height} style='border:3px solid #eee;' title='noimage'>";//이미지가 없으면
 
이걸 활용하고 싶은데요 ㅠㅠ
|

답변 1개 / 댓글 1개

img 태그에 onerror 사용하시면 되요

답변에 대한 댓글 1개

무슨말씀이신지 ㅠㅠ

답변을 작성하려면 로그인이 필요합니다.