리스트 부분질문좀드리겠습니다 채택완료

안녕하세요 질문좀 드리겠습니다 

글쓰기부분을 파일첨부 개별로 빼서 사용을 할려고합니다 

그런데 리스트 부분에서는 무조건 첨부파일 0을 불러오는데 

3으로 불러오게 하는방법 없을까요 

 

 

 

 

리스트부분 

Copy
<?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;                    }                     ?>

 

 

 

글쓰기부분

Copy
<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>

답변 2개

채택된 답변
+20 포인트

연락처를 쪽지로보네세요 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

흠 연락처 안보네시고 채택만 해주시네요 ㅎㅎ 머 어쩨껀 감사합니다 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고