노이미지 표시

노이미지 표시

QA

노이미지 표시

답변 1

본문


<?
//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

<img src="<?=$imagepath?>" onerror="this.src='noimage 주소'" width="518" height="670" alt="" />

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 408
© SIRSOFT
현재 페이지 제일 처음으로