Copy
<?//prt(count($list));for ($i=0; $i<count($list); $i++) { $noimage = "$latest_skin_url/img/no-image.gif"; $list[$i][file] =get_file($bo_table, $list[$i][wr_id]); $imagepath = $list[$i][file][1][path]."/".$list[$i][file][1][file]; //prt($i); ?>
<img src="<?=$imagepath?>" width="518" height="670" alt="" />
첨부파일1번을 출력하고 있는데 noimage를 출력하려면 어떻게 해야하나요? if문으로 하는데 자꾸 깨지네요..
|
답변 1개 / 댓글 2개
채택된 답변
+20 포인트
2016-01-27 (수) 23:56:46
<img src="<?=$imagepath?>" onerror="this.src='noimage 주소'" width="518" height="670" alt="" />
답변에 대한 댓글 2개
돼지코구뇽
2016-01-28 (목) 00:05:33
아 감사합니다 ! 3개 최신글인데 다른걸로 열심히 하고 있었네요 아무변화없고 소스는 똑같으니 1시간 고생햇네요 ㅠㅠ
2016-01-28 (목) 00:14:20
http://nyaongii.dothome.co.kr/temp/wrid_107931.html
this.src에 입력하신 이미지 경로가 맞는지 확인해 보세요.
this.src에 입력하신 이미지 경로가 맞는지 확인해 보세요.
답변을 작성하려면 로그인이 필요합니다.