게시판 뷰페이지에서 첨부파일이 없을때
본문
첨부파일이 없을때 게시판 뷰페이지에서
노이미지 뜨게 하고 싶은데 잘 안되네용..ㅠ.. 아래소스에서 어케 처리하면 될까용...
<?php
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
for ($i=0; $i<=count($view['file']); $i++) {
if ($view['file'][$i]['view']) {
echo "<div class=\"item\">\n";
echo get_view_thumbnail($view['file'][$i]['view']);
echo "</div>\n";
}
}
}
?>
답변을 작성하시기 전에 로그인 해주세요.