리스트 부분질문좀드리겠습니다

리스트 부분질문좀드리겠습니다

QA

리스트 부분질문좀드리겠습니다

본문

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

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

그런데 리스트 부분에서는 무조건 첨부파일 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>

이 질문에 댓글 쓰기 :

답변 2

답변을 작성하시기 전에 로그인 해주세요.
전체 129,678 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT