리스트/뷰 에서 첨부파일 이미지

리스트/뷰 에서 첨부파일 이미지

QA

리스트/뷰 에서 첨부파일 이미지

본문

리스트/뷰 에서 첨부파일 이미지 불러오는 경로를 알고싶습니다

 

<img src="<?php code ?>" alt="">

 

이런식으로요.. 도움부탁드립니다

 

이 질문에 댓글 쓰기 :

답변 2

리스트에서는

 $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;

이렇게 처리 하고

뷰에서는

<img src="<?php get_view_thumbnail($view['file'][$i]['view']) ?>" alt="">

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

회원로그인

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