Jump to content

Need help with this code


dprincejay

Recommended Posts

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\Program Files\Ampps\www\myphpschool\main.inc.php on line 277

 

pasted below is the line 277 code

 

while(    $myrow = mysql_fetch_array($result)){
        $url = $myrow["url"];
        $name = $myrow["name"];
        $min_lvl = $myrow["min_ulvl"];
        $max_lvl = $myrow["max_ulvl"];

    if($u_lvl >= $min_lvl  && $u_lvl < $max_lvl){

 

Thaks

Link to comment
Share on other sites

Looks like your query failed and $result is in fact false (which is a boolean). On the line before while(), do a var_dump of $result to see what it is. I suspect it will show false, which means you need to check your query.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.