썸네일 관련 질문

썸네일 관련 질문

QA

썸네일 관련 질문

답변 1

본문

안녕하세요 다들 맛점 하셨을까요 ?

 

다름이 아니라 제가 게시판에 있는 글들을 추출하려고 게시판 글을 들고왔는데

 

  $result = mysqli_query($connect_db, $sql2);

  while($row = mysqli_fetch_assoc($result)){ ?>

 

    <div>

        <a href="https://#.cafe24.com/bbs/board.php?bo_table=bathroom&wr_id=<?php echo $row['wr_id'] ?>">

            <img src="https://#.cafe24.com/data/file/bathroom/thumb-<?php echo $row['bf_file'].")300x355"; ?>" alt="">

        </a>

    </div>

    <div>

        <h1>

            <?php echo $row['wr_subject']; ?>

        </h1>

    </div>

 

   

썸네일 부분은 어떻게 추출할까요 ... ?ㅠ.ㅠ

이 질문에 댓글 쓰기 :

답변 1

게시판 갤러리 목록에 보면 썸네일 있어요

 



$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);

if($thumb['src']) {
    $img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_mobile_gallery_width'].'" height="'.$board['bo_mobile_gallery_height'].'">';
} else {
    $img_content = '<span class="no_img"><i class="fa fa-picture-o" aria-hidden="true"></i></span>';
}

echo run_replace('thumb_image_tag', $img_content, $thumb);

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 17
© SIRSOFT
현재 페이지 제일 처음으로