채택완료
첨부파일에 등록한 이미지 전체를 리스트에 노출할려면 어떻게해야되나요?
안녕하세요. 첨부파일 관련하여 질문올립니다.
기존등록 소스
<?
for ($i=0; $i<count($list); $i++) {
$style = "";
$list[$i][subject] = str_replace(" "," ",$list[$i][subject]);
$image = $list[$i][file][0][file];
for ($i=0; $i<count($list); $i++) {
$style = "";
$list[$i][subject] = str_replace(" "," ",$list[$i][subject]);
$image = $list[$i][file][0][file];
$comment_cnt = "";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span class='commentFont'>{$list[$i][comment_cnt]}</span></a>";
if ($list[$i][comment_cnt])
$comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span class='commentFont'>{$list[$i][comment_cnt]}</span></a>";
$list[$i][name] = preg_replace("/<img /", "<img style='display:none;' ", $list[$i][name]);
$list[$i][name] = preg_replace("/> <span/", "><span", $list[$i][name]);
$list[$i][name] = preg_replace("/class='member'/", "", $list[$i][name]);
?>
$list[$i][name] = preg_replace("/> <span/", "><span", $list[$i][name]);
$list[$i][name] = preg_replace("/class='member'/", "", $list[$i][name]);
?>
<a href='<?=$list[$i][href]?>'><?=makeThumbs($g4[path]."/data/file/$bo_table", $list[$i][file][0][file], $board[bo_1], $board[bo_2])?></a>
제가 하고 싶은 것은 글작성시 첨부파일 이미지를 20개를 등록시에 리스트에도 동일하게 20개의 이미지를 노출시키고 싶습니다.
방법좀 부탁드립니다.
|
답변 3개 / 댓글 1개
채택된 답변
+20 포인트
게시판 리스트에 표현하고 싶으신거라면
board_file 테이블을 datetime order by desc 로 읽어서
표현하심이 어떠실지요?
답변을 작성하려면 로그인이 필요합니다.