최신이미지 추출 제발좀 도와주세요 ㅜㅜ 초보입니다. 정보
최신이미지 추출 제발좀 도와주세요 ㅜㅜ 초보입니다.본문
지금 아래의 코드로 가로로 이미지를 추출하는데는 성공했습니다.
그런데 1개씩 세로로 그러니까 가로 말고 밑으로 떨어지게는 어떻게 하나요?
제발 부탁좀 드립니다. 초보입니다. ㅜㅜ
<?
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가
$max_rand = "5";
shuffle($list); // 추가
for ($i = 0; $i < count($list); $i++)
?>
<table border='0' cellpadding='0' cellspacing='0'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?
for ($i = 0; $i < count($list); $i++) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
echo "<td align='center'><a href='{$list[$i]['href']}'><img src='$file' width='191' border='0' height='90'></a><br></td>";
if($i=='4' || $i=='8'|| $i=='12'|| $i=='16'|| $i=='20'|| $i=='24'|| $i=='28'|| $i=='32'|| $i=='36'|| $i=='40'){
}
}
?></td>
</tr>
</table>
그런데 1개씩 세로로 그러니까 가로 말고 밑으로 떨어지게는 어떻게 하나요?
제발 부탁좀 드립니다. 초보입니다. ㅜㅜ
<?
if (!defined("_GNUBOARD_")) exit; //개별 페이지 접근 불가
$max_rand = "5";
shuffle($list); // 추가
for ($i = 0; $i < count($list); $i++)
?>
<table border='0' cellpadding='0' cellspacing='0'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?
for ($i = 0; $i < count($list); $i++) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
echo "<td align='center'><a href='{$list[$i]['href']}'><img src='$file' width='191' border='0' height='90'></a><br></td>";
if($i=='4' || $i=='8'|| $i=='12'|| $i=='16'|| $i=='20'|| $i=='24'|| $i=='28'|| $i=='32'|| $i=='36'|| $i=='40'){
}
}
?></td>
</tr>
</table>
댓글 전체
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?
for ($i = 0; $i < count($list); $i++) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
echo " <tr> <td align='center'><a href='{$list[$i]['href']}'><img src='$file' width='191' border='0' height='90'></a><br></td></tr>";
if($i=='4' || $i=='8'|| $i=='12'|| $i=='16'|| $i=='20'|| $i=='24'|| $i=='28'|| $i=='32'|| $i=='36'|| $i=='40'){
}
}
</table>
?>
<?
for ($i = 0; $i < count($list); $i++) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
echo " <tr> <td align='center'><a href='{$list[$i]['href']}'><img src='$file' width='191' border='0' height='90'></a><br></td></tr>";
if($i=='4' || $i=='8'|| $i=='12'|| $i=='16'|| $i=='20'|| $i=='24'|| $i=='28'|| $i=='32'|| $i=='36'|| $i=='40'){
}
}
</table>
?>