채택완료

최근 게시물 스킨에서 2번째 이미지를 출력하는 방법?

<?php 

for ($i=0; $i<count($list); $i++) {  

$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height);

if($thumb['src']) {

$img = '<img src="'.$thumb['src'].'" width="'.$thumb_width.'" height="'.$thumb_height.'" data-thumb="'.$thumb['src'].'" title="'.$list[$i]['subject'].'" >';

} else {

$img = '<img src="'.$latest_skin_url.'/img/noimage.png" width="'.$thumb_width.'" height="'.$thumb_height.'" title="'.$list[$i]['subject'].'">';

}

?>

최근 게시물 소스 코드는 이렇고요

이미지를 첫번째것이 아닌 2번째 것을 최근 게시물로 출력하려면 어떻게 해야 할까요?

|

답변 1개

채택된 답변
+20 포인트

for ($i=0; $i<count($list); $i++) 을 for ($i=1; $i<2; $i++) 로 변경해주세요~!  

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