홈페이지 메인에 나오는 최신글 옆에 날짜 추출 질문
안녕하세요
제가 홈페이지 메인중앙에 제목 뒤가 아니라 앞쪽에..
날짜를 집어넣고 싶은데 어떻게 해야 할까요?
<!-- 메인중앙 최신글 -->
<?
for ($i=0; $row_latest=mysql_fetch_array($result_latest); $i++){
$main_width_mod = $row_latest[istw_latest_mod]; //가로갯수
$main_width_td_width = (int)(100 / $main_width_mod);
//최신글 가로 갯수에 맞춰 넣기!
($main_width_mod >1) ? $style_mod = "float:left" : $style_mod = "clear:both";
?>
<div style="<?=$style_mod?>; width:<?=$main_width_td_width?>%;">
<div class="latest_div">
<?
//echo $main_width_mod."/".$main_width_td_width."%";
echo istw_latest_opt($row_latest[istw_latest_skin_dir], $row_latest[istw_latest_bo_table], $row_latest[istw_latest_rows], $row_latest[istw_latest_len], $row_latest[istw_latest_page], $row_latest[istw_latest_opt], $row_latest[istw_latest_sortday], $row_latest[istw_id]);
?>
</div>
</div>
<? } // for() ?>
<!-- //메인중앙 최신글 -->
<div class="clear"></div>
<?
$f = fopen($cachefile,'w');
fwrite($f,ob_get_contents());
fclose($f);
ob_end_flush();
}
?>
어케 멀 추가 해야될지 모르겟네요
제가 홈페이지 메인중앙에 제목 뒤가 아니라 앞쪽에..
날짜를 집어넣고 싶은데 어떻게 해야 할까요?
<!-- 메인중앙 최신글 -->
<?
for ($i=0; $row_latest=mysql_fetch_array($result_latest); $i++){
$main_width_mod = $row_latest[istw_latest_mod]; //가로갯수
$main_width_td_width = (int)(100 / $main_width_mod);
//최신글 가로 갯수에 맞춰 넣기!
($main_width_mod >1) ? $style_mod = "float:left" : $style_mod = "clear:both";
?>
<div style="<?=$style_mod?>; width:<?=$main_width_td_width?>%;">
<div class="latest_div">
<?
//echo $main_width_mod."/".$main_width_td_width."%";
echo istw_latest_opt($row_latest[istw_latest_skin_dir], $row_latest[istw_latest_bo_table], $row_latest[istw_latest_rows], $row_latest[istw_latest_len], $row_latest[istw_latest_page], $row_latest[istw_latest_opt], $row_latest[istw_latest_sortday], $row_latest[istw_id]);
?>
</div>
</div>
<? } // for() ?>
<!-- //메인중앙 최신글 -->
<div class="clear"></div>
<?
$f = fopen($cachefile,'w');
fwrite($f,ob_get_contents());
fclose($f);
ob_end_flush();
}
?>
어케 멀 추가 해야될지 모르겟네요
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개