겔러리형 스킨 리스트에 맨 마지막이미지가 출력되는 현상.. > 그누4 질문답변

그누4 질문답변

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

겔러리형 스킨 리스트에 맨 마지막이미지가 출력되는 현상.. 정보

겔러리형 스킨 리스트에 맨 마지막이미지가 출력되는 현상..

본문

jy 겔러리를 사용중입니다.
이미지를 여러개 올린후 리스트를 보면 썸네일 가장 마지막 이미지가 출력되네요
리스트의 이미지출력 코드를 붙여놓아 보았습니다.
어떤문제가 있는지 ㅠㅠ 고수님의 도움을 청합니다.

for($i=0; $i<$list_count; $i++) {

        // 파일 출력
        for ($j=0; $j<=count($list[$i][file]); $j++) {
            if ($list[$i][file][$j][view])
                $temp_thum_img = "<a href='{$list[$i][href]}'><img src='$g4[path]/data/file/$board[bo_table]/".urlencode($list[$i][file][$j][file])."' width='$thum_width' height='$thum_height' title='$content'></a>";
//$temp_thum_img = "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($list[$i][file][$j][file])."' width='$thum_width' height='$thum_height' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
        }
  if(!$list[$i][file][0][file])

출력은 <?=$temp_thum_img?>
--------------------------------------------------------------------------------

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