최신글 질문드립니다
본문
안녕하세요 질문좀드리겠습니다
최신글 부분인데 혹시
게시판명이 test 라고할때 어디부분에 test를 넣어야 최신글이 출력되나요?
<table class="eye_con_3">
<tr>
<td>
<ul>
<li>
<span class="eye_con_3_title eye_title_bg3">홈페이지 포트폴리오</span>
<p class="eye_title_line"></p>
</li>
</ul>
<ul id="eye_port_view1">
<?
$bo_table= 'homepage';
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
$bo_table= 'homepage';
$query_homepage = "select * from g5_write_".$board['bo_table']." where wr_is_comment='0' order by wr_id desc limit 8";
$result_homepage = sql_query($query_homepage);
while($row_homepage = sql_fetch_array($result_homepage)){
$thumb = get_list_thumbnail($board['bo_table'], $row_homepage['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 style="width:'.$board['bo_mobile_gallery_width'].'px;height:'.$board['bo_mobile_gallery_height'].'px">no image</span>';
}
$row_homepage['href'] = G5_BBS_URL.'/board.php?bo_table='.$board['bo_table'].'&wr_id='.$row_homepage['wr_id'];
//echo $img_content;
?>
<li class="hover_">
<?php echo $img_content; ?>
<div class='eye_scr_subject'>
<span class="eye_scr_subject_title" style="display:none;"><?php echo $row_homepage['wr_subject']; ?></span>
<a href="<?php echo $row_homepage['href'] ?>" class="eye_scr_subject_bt2" style="display:none;color:#fff;">자세히보기</i></a>
<a href="http://<?php echo $row_homepage['wr_1'] ?>" target="_blank" class="eye_scr_subject_bt" style="display:none;color:#fff;">바로가기</i></a>
</div>
</li>
<?}?>
</ul>
</td>
</tr>
<tr height="50">
<td></td>
</tr>
</table>
답변을 작성하시기 전에 로그인 해주세요.