J

최근게시물 이미지 질문좀 하겟습니다

J.Mando
· 2003-10-21 (화) 03:01:36 · 555 · 1
<? for ($i=0; $i<count($list); $i++) { ?>
if($list[$i][file_image1]){
?>
<tr height=22>
<td>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<font color=#cc0001><?=$list[$i][subject]?></font>
<br>
<img src='<?=$list[$i][file_image1]?>' width=100 height=85 border=0 align=left>
<font color=#777777><?=cut_str(stripslashes($list[$i][content]),600,'…')?></font>
<tr><td colspan=3 height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
</a>
</td>
</tr>
<?} else{?>
<tr height=22>
<td>
<a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'>
<font color=#cc0001><?=$list[$i][subject]?></font>
<br>
<font color=#777777><?=cut_str(stripslashes($list[$i][content]),600,'…')?></font>
<tr><td colspan=3 height=1 background='./<?=$cfg[bbs_dir]?>/line.gif'></td></tr>
</a>
</td>
</tr>
<?
}
}
?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>


이렇게 해보셔요...

댓글 1개

2003-10-21 (화) 23:14:03
감사합니다.. 많은 도움이 되었습니다.

앞으로도 많은 지도편달 부탁드리겠습니다.^^;
댓글을 작성하시려면 로그인이 필요합니다.

그누3질답

9,564건
+
제목 글쓴이 날짜 조회
03-10-21 조회 646
03-10-22 조회 454
03-10-21 조회 531
ggl_boy
03-10-21 조회 530
03-10-21 조회 582
03-10-21 조회 564
03-10-21 조회 781
03-10-21 조회 485
JJ.Mando
03-10-21 조회 556
03-10-20 조회 888
03-10-20 조회 1,072
03-10-20 조회 551
03-10-20 조회 476
03-10-20 조회 432
네네모똘
03-10-20 조회 946
JJ.Mando
03-10-20 조회 687
03-10-20 조회 513
03-10-20 조회 619
##rain
03-10-20 조회 392
03-10-20 조회 480