최신이미지 추출 제발좀 도와주세요 ㅜㅜ 초보입니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신이미지 추출 제발좀 도와주세요 ㅜㅜ 초보입니다. 정보

최신이미지 추출 제발좀 도와주세요 ㅜㅜ 초보입니다.

본문

지금 아래의 코드로 가로로 이미지를 추출하는데는 성공했습니다.
그런데 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>

Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339