nyinyi27 Posted September 11, 2008 Share Posted September 11, 2008 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 11 in /home/phothar/public_html/class/class_db_mysql.php on line 94 i got that error at http://www.impossiblecity.co.cc/loggedin.php i don't know how to fix it. it's SQL error or php coding error ? Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 11, 2008 Share Posted September 11, 2008 Re: Some Body Help me !!! it's a php error looks like something in loggedin.php is in error. can't tell you more than that from the info provided (maybe someone else that knows the bugs that ship with mccodes can tell you better than I) Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted September 11, 2008 Share Posted September 11, 2008 Re: Some Body Help me !!! IIRC it's attempting to use the result set returned to from mysql_query to fetch a row, where the result set itself is FALSE. Therefore, the error is actually in the initial query itself. This is the result of not check the result of every query and is fairly common and simple to fix. Posting the relevant lines will help. Quote Link to comment Share on other sites More sharing options...
nyinyi27 Posted September 11, 2008 Author Share Posted September 11, 2008 Re: Some Body Help me !!! IIRC it's attempting to use the result set returned to from mysql_query to fetch a row, where the result set itself is FALSE. Therefore, the error is actually in the initial query itself. This is the result of not check the result of every query and is fairly common and simple to fix. Posting the relevant lines will help. Here The Lines line91function fetch_single($result=0) line92 { line93 if(!$result) { $result=$this->result; } line94 return mysql_result($result, 0, 0); line95 } Quote Link to comment Share on other sites More sharing options...
Floydian Posted September 11, 2008 Share Posted September 11, 2008 Re: Some Body Help me !!! na, the database class isn't errored. Combine mine and nyna's posts and you get: Posting the relevant lines will help. looks like something in loggedin.php is in error. So, you've gotta find where you are using that "fetch_single" method in loggedin.php. It's how you're using the method that's in error, not the method itself. Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted September 11, 2008 Share Posted September 11, 2008 Re: Some Body Help me !!! Good spot that man - I forget people use the basic DB classes ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.