리스트 부분질문좀드리겠습니다
본문
안녕하세요 질문좀 드리겠습니다
글쓰기부분을 파일첨부 개별로 빼서 사용을 할려고합니다
그런데 리스트 부분에서는 무조건 첨부파일 0을 불러오는데
3으로 불러오게 하는방법 없을까요
리스트부분
<?php
if ($list[$i]['is_notice']) { // 공지사항 ?>
<strong style="width:<?php echo $board['bo_gallery_width'] ?>px;height:<?php echo $board['bo_gallery_height'] ?>px">프리미엄</strong>
<?php } else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';
} else {
$img_content = '<span style="width:'.$board['bo_gallery_width'].'px;height:'.$board['bo_gallery_height'].'px">no image</span>';
}
echo $img_content;
}
?>
글쓰기부분
<tr>
<th scope="row">test</th>
<td>
<input type="file" name="bf_file[]" title="파일첨부 4 : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
<?php if ($is_file_content) { ?>
<input type="text" name="bf_content[]" value="<?php echo ($w == 'u') ? $file[3]['bf_content'] : ''; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input">
<?php } ?>
<?php if($w == 'u' && $file[3]['file']) { ?>
<input type="checkbox" id="bf_file_del3" name="bf_file_del[3]" value="4"> <label for="bf_file_del3"><?php echo $file[3]['source'].'('.$file[3]['size'].')'; ?> 파일 삭제</label>
<?php } ?>
</td>
</tr>
답변을 작성하시기 전에 로그인 해주세요.