묻고답하기


제로보드에서 회원레벨 관리할때여 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 남기남
최종욱 php라인5어쩌구저쩌구 에러가 나옵니다. [소스보기 클릭] [2] 2007.08.10
w:)style nzeo 좌측 메뉴...;; [1] 2007.08.10
김문선 홈페이지를 만들었는데.. 문제가 발생하였사옵니다-ㅁ-; [1] 2007.08.10
양종휘 onmouse효과에서 소리를 넣을려고 하는데요 [2] 2007.08.10
아이리버 트래픽과 히트파일 수 이거 정상인가요? ㅡ.ㅡ [1] 2007.08.10
김종경 php 세션 아이디 생성 문제....  
김종경 php 세션 아이디 자동 생성 [5] 2007.08.10
김보현 html쌩초보인데요..노트패드루 홈페이지를 만들려는데 그림이 링크가 안되네요..--;;어떻게 해야하느지 [5] 2007.08.10
송인주 iframe 리사이즈 문제요~ [5] 2007.08.10
선美 php문에서 에러1개 입니다. [5] 2007.08.10
Clara Kim 질문있습니다!! 흠.... 스크롤에 따른 레이어 이동 질문! 스크롤을 움직여야 내용이 보이네여.. ㅜㅜ [1] 2007.08.10
k_교주 그림 파일에 대해 나름대로 분석했습니다만. 뭘 써야 할지 궁금해지는바라 의견을 묻습니다. [1] 2007.08.10
자룡 노프레임때문에요 [1] 2007.08.10
양혜영 head 와 foot 을 어디서 나눠야 할지 가르쳐주세요 [1] 2007.08.10
함승우 html파일에서 제로보드게시판하고 연동하는법좀.. [1] 2007.08.10
정한재 홈페이지 열릴 떄 공지사항 창 띄우기 [2] 2007.08.10
레몬 코멘트 삭제시 발생되는 에러 해결 방법 좀..  
ppond03 노프레임 사이트를 만들었는데.... 급합니다. [2] 2007.08.10
김재수 [자바스크립? #2] 움직이는 메뉴가 화면을 덥치네요 ㅠ ㅠ  
김남현 자바스크립트 함수 호출하여 PHP로 쿠키를 구울때.. 가능하지... [1] 2007.08.10