최근 게시물 스킨에서 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번째 것을 최근 게시물로 출력하려면 어떻게 해야 할까요?
답변을 작성하시기 전에 로그인 해주세요.