테스트 사이트 - 개발 중인 베타 버전입니다

최신글에서 업로드한 이미지 1과 2를 보여주고싶습니다 채택완료

시ah 1년 전 조회 1,530

현재 여기서 이미지 1번 이미지를 가져오는데 2번 이미지도 같이 가져오고싶습니다

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0); $thumb_width = 210; $thumb_height = 150; $list_count = (is_array($list) && $list) ? count($list) : 0; ?>

   

   
       

        if($thumb['src']) {         $img = $thumb['src'];     } else {         $img = G5_IMG_URL.'/no_img.png';         $thumb['alt'] = '이미지가 없습니다.';     }     $img_content = ''.$thumb['alt'].'';     $wr_href = get_pretty_url($bo_table, $list[$i]['wr_id']);     ?>        

  •                         비밀글 ";

                echo " ";             if ($list[$i]['is_notice'])                 echo "".$list[$i]['subject']."";             else                 echo $list[$i]['subject'];             echo "";                          if ($list[$i]['icon_new']) echo "N새글";             if ($list[$i]['icon_hot']) echo "H인기글";

                // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }             // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

                // echo $list[$i]['icon_reply']." ";             // if ($list[$i]['icon_file']) echo " " ;             // if ($list[$i]['icon_link']) echo " " ;

                if ($list[$i]['comment_cnt'])  echo "             ".$list[$i]['wr_comment']."";

                ?>

               

                                                               
           
  •            
  • 게시물이 없습니다.
  •        
    더보기

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

</p>

<p>$list[$i]['file'] = get_file($list[$i]['bo_table'], $list[$i]['wr_id']);

$file_img2 = $list[$i]['file'][1]['path'].'/'.$list[$i]['file'][1]['file'];

$testthumb = apms_thumbnail($file_img2, '333', '222', false, true);

echo $testthumb['src'];</p>

<p>

 

여기서 0 은 첫번째 이미지 1 은 두번째 이미지 입니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

1년 전

g5팁 게시판에 코드를 올렸습니다

https://sir.kr/g5_tip/21623

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인