묻고답하기


제로보드에서 회원레벨 관리할때여 php화일을 만들어서 실행만 시키는건데..
회원올리는 기준은 글쓴수와 포인트수로 올리는 겁니다..

기준 : http://majorball.giveu.net/img/level2.gif     <======이게 글쓴수와 코멘트수로 레벨올리는 기준이에염

근데...아래에 화일(php)를 실행시키니 에러가 1개가 떠서여..

<?
mysql_connect("localhost",ID,PASSWORD);
mysql_select_db(DBNAME);

$result2=mysql_query("select no from zetyx_member_table where level>1");

while($result2 = mysql_fetch_array($result))
{
$result3=mysql_query("select no,point1,point2 from zetyx_member_table where no=$result2[no]",$connect);

$row=mysql_fetch_array($result3);

$no = $row[no];
$point1 = $row[point1]/10;
$point2 = $row[point2];

if($point1>30000 && $point2>300000)
  @mysql_query("update zetyx_member_table set level='2' where no='$no'",$connect) or error(mysql_error());
elseif($point1>1000 && $point2>10000)
  @mysql_query("update zetyx_member_table set level='3'+ '+ ' where no='$no'",$connect) or error(mysql_error());
elseif($point1>500 && $point2>500)
  @mysql_query("update zetyx_member_table set level='4' where no='$no'",$connect) or error(mysql_error());
elseif($point1>300 && $point2>100)
  @mysql_query("update zetyx_member_table set level='5' where no='$no'",$connect) or error(mysql_error());
elseif($point1>100 && $point2>40)
  @mysql_query("update zetyx_member_table set level='6' where no='$no'",$connect) or error(mysql_error());
elseif($point1>30 && $point2>10)
  @mysql_query("update zetyx_member_table set level='7' where no='$no'",$connect) or error(mysql_error());
elseif($point1>10 && $point2>2)
  @mysql_query("update zetyx_member_table set level='8' where no='$no'",$connect) or error(mysql_error());
else
  @mysql_query("update zetyx_member_table set level='9' where no='$no'",$connect) or error(mysql_error());

}

mysql_close();
?>

------------------------------------------------------------------------------------
이것을 실행하면 이런에러가...


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/themjh/level2/level.php on line 7

이런에러가 나네욤^^;;

이걸 어떻게 수정해야죠?? 변수를 달리 잡아줘도 계속 에러가..;;;

도와주세염!
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
알싸라비아콜롬비아당 홈페이지 권한설정에 따른 에러 [1] 2018.08.12 by sejin7940
댑펑 추가 질문드립니다. 서버 접속 문제 [1] 2018.08.02 by Luatic™
인천한량 ms_m_board 의카카오 링크 구버전앱 링크전송 오류 문제로 도움을 청합니다. [4] file 2018.07.19 by 인천한량
인천한량 모바일 파일첨부 장애와 파일용량제한에 대한 질문 입니다. [2] 2018.07.19 by 인천한량
블맨 라즈베리파이 라즈비안에 XE설치  
boss 레이아웃 엉망이 됐는데 어떻게 수정하나요? [1] 2018.06.28 by 디자인클립
잡순이 HTTP ERROR 500 오류 file  
boss HTTP 500 내부 서버 오류 [1] 2018.06.23 by 기진곰
아티자인 HTTP 500 내부 서버 오류 [1] 2018.06.19 by 너에게제공
가르송 카카오톡 api가 바꼈네요 ㅠㅠ  
tosky**** 레이아웃 수정 메뉴바 하단 간격 수정 ㅠㅠ file  
안준근 홈페이지 회원가입시 HTTP500 에러문제 [2] 2018.05.11 by 안준근
마리 오류 [1] 2018.04.12 by sejin7940
kamue**** 데이터 마이그레이션을 데이터 추출 오류 ㅠㅠ [4] file 2018.03.29 by kamue****
원자인 게시판 목록 추가 및 수정 file  
장병훈 누리고 장바구니에서 결제하기 클릭시 http 500 에러 [1] 2018.02.07 by HowtoXE
이음 HTTP 500 내부 서버 오류  
이음 HTTP 500 내부 서버 오류 문의드립니다.  
h****c555c xe설치 관련문의 [1] 2018.01.31 by Ansi™
절대권력 처음설치후 HTP500 에러 문제 [2] 2018.01.27 by 절대권력