DB 에러

DB 에러

QA

DB 에러

본문

그누스킨G4 에 적용된 별점주기 : 정상 >> G5 에 사용하니 : 에러발생

 

그누보드 G4 에서는 정상
<?
$cmtpoint ='0'; 
$totalcount = '0'; 
$userrating = '0'; 

$tbl = "{$g4[write_prefix]}{$bo_table}"; 
$sql2 = " select wr_3 from $tbl  where wr_is_comment > 0 && wr_parent = '{$list[$i][wr_id]}' && wr_3 > '0' "; 
$result2 = sql_query($sql2); 

 

while($row2 = mysql_fetch_array($result2)  ) { 
$point=$row2[0]; 
$cmtpoint=$cmtpoint + $point; 
$totalcount++; 

if ($totalcount!=0) { 
$cmtpoint= $cmtpoint/$totalcount; 
$cmtpoint= number_format($cmtpoint,2); 

        echo "<a href='{$list[$i][href]}'>";
 ?>


그누보드 G5 에서는 
<?
$cmtpoint ='0'; 
$totalcount = '0'; 
$userrating = '0'; 

$tbl = "{$g5[write_prefix]}{$bo_table}"; 
$sql2 = " select wr_3 from $tbl  where wr_is_comment > 0 && wr_parent = '{$list[$i][wr_id]}' && wr_3 > '0' "; 
$result2 = sql_query($sql2); 

 

line 344 : while($row2 = mysql_fetch_array($result2)  ) { 
$point=$row2[0]; 
$cmtpoint=$cmtpoint + $point; 
$totalcount++; 

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/jone/public_html/theme/company/skin/board/fz_gallery_circle_/list.skin.php on line 344


if ($totalcount!=0) { 
$cmtpoint= $cmtpoint/$totalcount; 
$cmtpoint= number_format($cmtpoint,2); 

        echo "<a href='{$list[$i][href]}'>";
 ?>

아래 에러메시지
mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/jone/public_html/theme/company/skin/board/fz_gallery_circle_/list.skin.php on line 344

 

이 질문에 댓글 쓰기 :

답변 1

본문 내용중 mysql_fetch_array 부분을 sql_fetch_array 로 바꾸어 저장해 보세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 3

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT