답변 2개
채택된 답변
+20 포인트
7년 전
$bo_table = "notice"; //게시판Table
$wr_id = 12; //게시글Id
$bf_no = 2; //몇번째이미지
$width = 400; //가로Size(widht)
$height = 300; //세로Size(height)
위의 값만 변경하시면 쓸수 있을거에요.
</p>
<p><?php
$bo_table = "notice"; //게시판Table
$wr_id = 12; //게시글Id
$bf_no = 2; //몇번째이미지
$width = 400; //가로Size(widht)
$height = 300; //세로Size(height)</p>
<p>$bf_no--;
$sql_bf = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '{$bo_table}' and wr_id = '{$wr_id}' and bf_type between '1' and '3' order by bf_no limit {$bf_no}, 1";
$row_bf = sql_fetch($sql_bf);</p>
<p>if($row_bf['bf_file']) {
$filename = $row_bf['bf_file'];
$filepath = G5_DATA_PATH.'/file/'.$bo_table;
$alt = get_text($row_bf['bf_content']);
$tname = thumbnail($filename, $filepath, $filepath, $width, $height, false);
$src = G5_DATA_URL.'/file/'.$bo_table.'/'.$tname;
echo '<img src="'.$src.'" alt="'.$alt.'" >';
}
?></p>
<p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인