테스트 사이트 - 개발 중인 베타 버전입니다

썸네일 관련 질문 채택완료

SIRhelpme 3년 전 조회 2,280

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

 

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

 

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

채택된 답변
+20 포인트

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

 

</span></font></p>

<pre>
$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);</pre>

<p><font face="monospace"><span style="font-size: 11.375px;">

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

답변에 대한 댓글 1개

S
SIRhelpme
3년 전
data파일에 있더라구요..! 해결했습니다 :)

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

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

로그인