게시판 평점주는 곳에서 네티즌 평점을 주지도 않았는데 위에 평점을 따라가네요...

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

------------------------------------------------------------

<td><?
$row5_sql = " SELECT wr_10 FROM g4_write_{$bo_table} where wr_is_comment = '1' and wr_parent = '{$list[$i][wr_id]}' order by wr_10 ";
$row5_result = mysql_query($row5_sql);

$row6_sql = " SELECT wr_10 FROM g4_write_{$bo_table} where wr_is_comment = '1' and wr_parent = '{$list[$i][wr_id]}' order by wr_10 ";
$row6_result = mysql_query($row6_sql);
$row6 = mysql_num_rows($row6_result);


for ($r=0; $row5 = mysql_fetch_array($row5_result); $r++) {
$p5 += $row5[wr_10];
}

if ($row6 > 0) {

$total_sum5 = round($p5/$row6, 2);
$sum5 = round($p5/$row6, 1);

}

?>

<table cellpadding='0' cellspacing='0' border='0'>
<tr><td width=500 colspan=3><font color=red>네티즌평점 : </font>

<span>
<?
if ($sum5 <= 1.0) {
echo "<span><img src='$g4[path]/img/c_o.gif' width=14 height=11></span>";
}elseif ($sum5 <= 2.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11></span>";
}elseif ($sum5 <= 3.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_o.gif' width=14 height=11> </span>";
}elseif ($sum5 <= 4.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11> </span>";
}elseif ($sum5 <= 5.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_o.gif' width=14 height=11> </span>";
}elseif ($sum5 <= 6.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11> </span>";
}elseif ($sum5 <= 7.0) {
echo "<img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_o.gif' width=14 height=11>";
}elseif ($sum5 <= 8.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11> </span>";
}elseif ($sum5 <= 9.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_o.gif' width=14 height=11> </span>";
}elseif ($sum5 <= 10.0) {
echo "<span><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11><img src='$g4[path]/img/c_green.gif' width=14 height=11> </span>";
}
?>
</span>  
<font color=red size=3><?=$total_sum5?></font> 점  참여인원 : <font size=3 color=red> <?=$row6?> </font> 명 <img src="<?$g4[path]?>/img/bull.gif">  포인트 <span style='font:normal 11px tahoma; color:red;' ><font size=3><?=$list[$i][wr_hit]?></font></span> 점 </td></tr>
</table>
<? unset($p5);?>
</td>
</tr>

</table>


------------------------------------------------------------

대략 내용을 이 안에 해결 방법이 있을거 같은데요..
만약 위에 평점을 준다면 아래쪽에 있는 게시글도 따라서 위에 평점을 따라 가네요..
무슨 문제가 있는거죠 ?
루프 문으로 계속 돌아가는거 아닌가 싶은데요..
명퀘한 답변 미리 감사합니다....꾸벅..
스킨은 이 스킨을 사용 하였습니다.

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=68834&sca=&sfl=wr_subject&stx=%BF%B5%C8%AD&sop=and

미리 감사합니다....
|

댓글 3개

리스트에 넣으신거죠?
리스트 루프문안에 들어가야 정상적으로 작동될겁니다.
흠..어렵네요...무슨 말씀이신지 어렵네요...
리스트에 넣은건 맞는데..
루프문이라면 ..흠...어렵네요..쩝..
해당 질문은 전체소스를 올려주시면 정확한 답이 나올거 같습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 856
17년 전 조회 750
17년 전 조회 972
17년 전 조회 1,555
17년 전 조회 946
17년 전 조회 999
17년 전 조회 791
17년 전 조회 757
17년 전 조회 1,552
17년 전 조회 784
17년 전 조회 728
17년 전 조회 765
17년 전 조회 783
17년 전 조회 974
17년 전 조회 998
17년 전 조회 903
17년 전 조회 780
17년 전 조회 752
17년 전 조회 820
17년 전 조회 759
🐛 버그신고