카테고리별 최신글출력에 노이미지부분은 어떻게?

카테고리별 최신글부분 소스에 noimage.gif부분을 넣고 싶은데
계속 에러가 나네요.
############ 소스 ################
<table width=100% bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=1>
<?
 // 카테고리 출력
 echo "<tr>";
 for ($i=0; $i<count($list); $i++) {
     echo "<td align=center height=25>";
  echo "<span class=tt><a href='./?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][0][ca_id]}'>{$list[$i][0][ca_name]}</a></span>";
  echo "</td>";
 }
 echo "</tr>";
 // 카테고리별 타이틀 출력
 echo "<tr>";
 for ($i=0; $i<count($list); $i++) {
     echo "<td align=left valign=top>";
  for ($k=0; $k<count($list[$i]); $k++) {
   $kk = $k+1;
      echo "[{$kk}]. <a href='./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][$k][wr_id]}'><img src={$list[$i][$k][file_image1]} width=200 border=0 align=left></a>
<a href='./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][$k][wr_id]}'><span class=content>{$list[$i][$k][subject]} <span style='font-size:8pt;'>{$list[$i][$k][commentcnt]}</span></span></a> {$list[$i][$k][icon_new]}<br>\n";
  }
  echo "</td>";
 }
 echo "</tr>";
 if (count($list) == 0) {
  echo "<tr><td align=center height=50>자료가 없습니다.</td></tr>";
 }
?>
</table>
##############소스끝##############
루트님이 올려주신 파일에 그림출력부분만 넣었습니다. 이미지가 없을때 출력되는 부분은 어떻게
처리해야할지
|

댓글 2개

if($list[$i][$k][file_image1]) echo "<img src={$list[$i][$k][file_image1]} width=200 border=0 align=left>";
else echo "<img src='{$latest_skin}/noimage.gif' width=200 border=0 align=left>";
카이루님 대체 어디에 넣어야 하나요.
계속 실험해도 에러나거나 noimage안나오거나 그러네요.
밑에껄로도 넣어도 안되네요.

if($list[$i][$k][file_image1]) {
echo "<img src={$list[$i][$k][file_image1]} width=200 border=0 align=left>";
} else echo "<img src='{$latest_skin}/noimage.gif' width=200 border=0 align=left>";
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

+
제목 글쓴이 날짜 조회
19년 전 조회 3,897
19년 전 조회 3,509
19년 전 조회 3,399
19년 전 조회 4,081
19년 전 조회 3,478
19년 전 조회 4,160
19년 전 조회 3,800
19년 전 조회 3,631
19년 전 조회 3,811
19년 전 조회 3,621
19년 전 조회 3,453
19년 전 조회 3,542
19년 전 조회 3,351
19년 전 조회 3,527
19년 전 조회 3,578
19년 전 조회 3,601
19년 전 조회 3,727
19년 전 조회 3,857
19년 전 조회 3,438
19년 전 조회 3,736