최신 이미지 불어오는데요 채택완료
오이군
10년 전
조회 2,144
최신 이미지를 불러오는데요.
아래 코드는 이미지를 아래쪽으로 불러오는 코드인데요.
1
2
3
이렇게 불러옵니다.
그런데
1 2 3
이런 형식으로 가로로 불러올려면 어떻게 수정하는게 좋을까요?
</p><p><?</p><p>if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 </p><p>?></p><p> </p><p><table width="200" cellpadding=0 cellspacing=0 border=0><tr><td></p><p><table width="100%" border="0" cellspacing="0" cellpadding="0"></p><p><tr><td height=10></td></tr> </p><p><span class="Apple-tab-span" style="white-space:pre"> </span><? for ($i=0; $i<count($list); $i++) { ?></p><p><span class="Apple-tab-span" style="white-space:pre"> </span><tr> </p><p><span class="Apple-tab-span" style="white-space:pre"> </span><td align="center"></p><p> </p><p> <? // View </p><p><span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span> $table = "banner";</p><p><span class="Apple-tab-span" style="white-space:pre"> </span> $wr_id = $list[$i]['wr_id'];</p><p><span class="Apple-tab-span" style="white-space:pre"> </span> $href = $list[$i]['wr_link1'];</p><p><span class="Apple-tab-span" style="white-space:pre"> </span> sql_query(" update {$g4[write_prefix]}{$table} set wr_3 = wr_3 + 1 where wr_id = '$wr_id' "); </p><p><span class="Apple-tab-span" style="white-space:pre"> </span>echo "<a href='$href' target='_blank'>";</p><p> $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면</p><p> if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?></p><p><span class="Apple-tab-span" style="white-space:pre"> </span><img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='115' height="115" border='0'></a>
</p><p><span class="Apple-tab-span" style="white-space:pre"> </span><? } else { ?></p><p><span class="Apple-tab-span" style="white-space:pre"> </span><img src='<?=$latest_skin_path?>/img/noimage.gif' width='115' height="115" border='0'></a>
</p><p><span class="Apple-tab-span" style="white-space:pre"> </span><? } ?></p><p> </p><p><span class="Apple-tab-span" style="white-space:pre"> </span></td></p><p><span class="Apple-tab-span" style="white-space:pre"> </span></tr></p><p><span class="Apple-tab-span" style="white-space:pre"> </span><tr><td height=7></td></tr></p><p><span class="Apple-tab-span" style="white-space:pre"> </span><? } ?></p><p></table></p><p></td></tr></table></p><p>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
10년 전
</p><p><span style="line-height: normal; font-size: 10pt;"><?</span></p><pre style="line-height: normal;">if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="200" cellpadding=0 cellspacing=0 border=0><tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td height=10></td></tr> </pre><pre style="font-size: 13.3333330154419px; line-height: normal;"></pre><pre style="line-height: normal;"><span style="font-size: 13.3333330154419px; font-family: 굴림;"> <tr> </span>
<? for ($i=0; $i<count($list); $i++) { ?>
<td align="center">
<? // View
$table = "banner";
$wr_id = $list[$i]['wr_id'];
$href = $list[$i]['wr_link1'];
sql_query(" update {$g4[write_prefix]}{$table} set wr_3 = wr_3 + 1 where wr_id = '$wr_id' ");
echo "<a href='$href' target='_blank'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='115' height="115" border='0'></a>
<? } else { ?>
<img src='<?=$latest_skin_path?>/img/noimage.gif' width='115' height="115" border='0'></a>
<? } ?>
</td>
<? } ?></pre><pre style="font-size: 13.3333330154419px; line-height: normal;"> </tr>
</pre><pre style="line-height: normal;"><span style="font-size: 13.3333330154419px; font-family: 굴림;"> <tr><td height=7></td></tr></span>
</table> </pre><p><span style="line-height: normal; font-size: 10pt;"></td></tr></table></span> </p><p><span style="line-height: normal; font-size: 10pt;">
이렇게 tr을 밖으로 빼면 사진 사진 사진
이렇게 되던게
이렇게 한줄로 바뀔꺼에요사진 사진 사진
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인