최신글에 wr_link1로 링크를 걸고싶은데요 .. 한번 봐주세요 ㅜ 정보
최신글에 wr_link1로 링크를 걸고싶은데요 .. 한번 봐주세요 ㅜ본문
for ($i=0; $i<count($list); $i++) {
///// 썸네일 생성 마침
if($list[$i][file][0][file]){
$image_file = urlencode($list[$i][file][0][file]);
$image_url = "$g4[path]/data/file/$bo_table";
★$href_url = $list[$i][wr_link1];★
$image_view = "<img src='$image_url/$image_file' hspace='0'>";
$imageview = "$image_url/$image_file";
}
★$imagelink = $list[$i][wr_link1] ;★
$imagecaption = $list[$i][subject] ;
$imagecaption = str_replace('"', '"', $imagecaption);
if(!$imageviews){ $imageviews = $imageview ; }else{ $imageviews .= "\",\"" . $imageview ; }
if(!$imagelinks){ $imagelinks = $imagelink ; }else{ $imagelinks .= "\",\"" . $imagelink ; }
if(!$imagecaptions){ $imagecaptions = $imagecaption ; }else{ $imagecaptions .= "\",\"" . $imagecaption ; }
echo <<<HEREDOC
Pic[$i] = '$imageview';
HEREDOC;
}
=================================================
★ 한 부분에 $list[$i][wr_link1] ; 를 주고 이미지 출력되는
<div><a href="$imagelink"><img src="{$latest_skin_path}/img/start_img.gif" name='slidephoto' width="474" height="324" border=0/></div>
이쪽에 링크를 걸어놨는데요 계속 처음올린 wr_link1값으로 링크가 가더라고요
혹시 각각 사진올릴때마다 링크값을 넣었던 곳으로 링크가 가고싶은데 어떻게 하면 좋을까요 ;;;?
너무 복잡하게 적었나요 ㅜ?;
///// 썸네일 생성 마침
if($list[$i][file][0][file]){
$image_file = urlencode($list[$i][file][0][file]);
$image_url = "$g4[path]/data/file/$bo_table";
★$href_url = $list[$i][wr_link1];★
$image_view = "<img src='$image_url/$image_file' hspace='0'>";
$imageview = "$image_url/$image_file";
}
★$imagelink = $list[$i][wr_link1] ;★
$imagecaption = $list[$i][subject] ;
$imagecaption = str_replace('"', '"', $imagecaption);
if(!$imageviews){ $imageviews = $imageview ; }else{ $imageviews .= "\",\"" . $imageview ; }
if(!$imagelinks){ $imagelinks = $imagelink ; }else{ $imagelinks .= "\",\"" . $imagelink ; }
if(!$imagecaptions){ $imagecaptions = $imagecaption ; }else{ $imagecaptions .= "\",\"" . $imagecaption ; }
echo <<<HEREDOC
Pic[$i] = '$imageview';
HEREDOC;
}
=================================================
★ 한 부분에 $list[$i][wr_link1] ; 를 주고 이미지 출력되는
<div><a href="$imagelink"><img src="{$latest_skin_path}/img/start_img.gif" name='slidephoto' width="474" height="324" border=0/></div>
이쪽에 링크를 걸어놨는데요 계속 처음올린 wr_link1값으로 링크가 가더라고요
혹시 각각 사진올릴때마다 링크값을 넣었던 곳으로 링크가 가고싶은데 어떻게 하면 좋을까요 ;;;?
너무 복잡하게 적었나요 ㅜ?;
댓글 전체
<div><a href="$imagelink"><img src="{$latest_skin_path}/img/start_img.gif" name='slidephoto' width="474" height="324" border=0/></div>
이거 출력하는곳이 for문 안에 있는거 맞는지요
이거 출력하는곳이 for문 안에 있는거 맞는지요
아니요 for문안에 없습니다 ; ;;