메인 최근글에 이미지가 없을때 정보
메인 최근글에 이미지가 없을때본문
최근글을 메인에 뿌려주는데
제일 최근글 하나만 원본이미지를 불러주거든요.
그런데 이미지가 없을때 대체이미지를 보여주려면 어떻게해야하나요?
<td width="117">
<a href='<?=$list[0]['href']?>'>
<img width="108" height="46" src="<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$list[0][file][0][file]?>" border="0" align="bottom" />
</a>
</td>
제일 최근글 하나만 원본이미지를 불러주거든요.
그런데 이미지가 없을때 대체이미지를 보여주려면 어떻게해야하나요?
<td width="117">
<a href='<?=$list[0]['href']?>'>
<img width="108" height="46" src="<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$list[0][file][0][file]?>" border="0" align="bottom" />
</a>
</td>
댓글 전체

<td width="117">
<? if ($list[0][file][0][file]) { ?>
<a href='<?=$list[0]['href']?>'>
<img width="108" height="46" src="<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$list[0][file][0][file]?>" border="0" align="bottom" />
</a>
<? } else { ?>
<img width="108" height="46" src="<?=$g4[path]?>/img/noimage.gif" border="0" align="bottom" />
<? } ?>
</td>
<? if ($list[0][file][0][file]) { ?>
<a href='<?=$list[0]['href']?>'>
<img width="108" height="46" src="<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$list[0][file][0][file]?>" border="0" align="bottom" />
</a>
<? } else { ?>
<img width="108" height="46" src="<?=$g4[path]?>/img/noimage.gif" border="0" align="bottom" />
<? } ?>
</td>
아 곰순이푸님 감사합니다~ ^-^
찾던정보 ㅋㅋㅋ