답변 2개
8년 전
자문자답이됐네요..
</p><p>$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);</p><p>$matches = get_editor_image($list[$i]['wr_content'], true);</p><p><span style="font-size: 11pt;">$img = $matches[1][0];</span> </p><p><span style="font-size: 11pt;"> </span></p><p><span style="font-size: 11pt;">if($thumb['src']) {</span> </p><p style="margin-left: 40px;">$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';</p><p>}<span style="font-size: 11pt;">else if($img) {</span></p><p>preg_match("/src=[\'\"]?([^>\'\"]+[^>\'\"]+)/i", $img, $m);</p><p>$src = $m[1];</p><p>$img_content = '<img src="'.$src.'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';</p><p>}else{</p><p>$img_content = '<img class="img" src="no.png"></span>';</p><p><span style="font-size: 11pt;">}</span> </p><div>
</div><div>
이렇게 했넹 ㅛㅎㅎㅎ
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
$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 = '<img class="img" src="no.png">';
}
echo $img_content;
[/code]
이렇게 하는대도 그렇더라구요 ㅠㅠㅠ