Jump to content
MakeWebGames

Help to solve error needed


lynm77
 Share

Recommended Posts

Hello All

I have just added sms notifications to mccodes v2

But when i installed i get the following error from pages

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/swisou/public_html/global_func.php on line 561

I have attached the following lines below to see if someone can help me please.

All solved

Thank you all

Edited by lynm77
Link to comment
Share on other sites

Hello All

I have just added sms notifications to mccodes v2

But when i installed i get the following error from pages

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/swisou/public_html/global_func.php on line 561

I have attached the following lines below to see if someone can help me please.

559.

560. $blah=mysql_query("SELECT * FROM users WHERE userid=$user",$c);

561. $r=mysql_fetch_array($blah);

562. if($type == 1 && $r['phoneon'] == 1)

563. {

564. $Name = "$gamename"; //senders name

 

Thank you

Change

$blah=mysql_query("SELECT * FROM users WHERE userid=$user",$c);

 

To

$blah=mysql_query("SELECT * FROM users WHERE userid=$userid",$c);
Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...