재목은 정상 출력되는데 본문 내용이 최신글로 덮어씌어 집니다 도와주세요...
재목은 정상 출력되는데 본문 내용이 최신글로 덮어씌어 집니다 도와주세요...
제목은 정상적으로 등록이 되지만
본문 내옹은 최신글로 이전글들 덮어 씌어지네요... 도와주세요...


(list.skin.php)
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$list_skin_url.'/list.css" media="screen">', 0);
// 헤드스킨
$head_class = '';
if(isset($boset['hskin']) && $boset['hskin']) {
add_stylesheet('<link rel="stylesheet" href="'.G5_CSS_URL.'/head/'.$boset['hskin'].'.css" media="screen">', 0);
} else {
$head_class = (isset($boset['hcolor']) && $boset['hcolor']) ? ' border-'.$boset['hcolor'] : ' border-black';
}
?>
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<div id="bo_list" style="width:<?php echo $width; ?>">
<?php
$sql = "select * from ".$write_table." where wr_is_comment = '0' group by wr_1 order by wr_2 desc";
$result = sql_query($sql);
for ($i=0; $history_y=sql_fetch_array($result); $i++) {
?>
<div class="list_year">
<strong><?php echo $history_y[wr_1]?></strong>
<p><?php
$sql2 = "select * from ".$write_table." where wr_is_comment = '0' and wr_1 = '{$history_y[wr_1]}' order by wr_2 desc";
$result2 = sql_query($sql2);
for ($i=0; $history_m=sql_fetch_array($result2); $i++) {
?></p>
<div class="mc_con">
<div class="list_month"><?php echo $history_m[wr_2]?></div>
<div class="list_content">
<?php echo nl2br($history_m[wr_subject]);?>
<a class="list_auto"><?php echo $list[$i]['wr_content'] ?><a/>
<?php if ($is_admin) { ?>
<a href="<?php echo G5_BBS_URL?>/write.php?w=u&bo_table=<?php echo $bo_table?>&wr_id=<?php echo $history_m[wr_id]?>" class="m_btn"><i class="fa fa-check-square"></i></a>
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $history_m['wr_2'] ?></label>
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $history_m['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
<?php } ?>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
답변 2개
<?php echo $list[$i]['wr_content'] ?>
->
<?php echo $history_m['wr_content'] ?>
fetch 한 array를 history_m이 받았네요..
답변을 작성하려면 로그인이 필요합니다.