Jump to content

mysql_result expects parameter 1 to be resource, boolean


JasonHarper

Recommended Posts

Hello,

I have some code that has been running just fine on my in-house server.  I moved it to an Amazon EC2 instance and now I get the following error:

 

Warning: mysql_result() expects parameter 1 to be resource, boolean given in /var/www/INCLUDES/systemFunctions.php on line 174

 

Here is the code it's referencing:

 

	$result = mysql_query("SELECT count(*) FROM users WHERE userName='$email' AND password='$encryptPassword' AND accountStatus='1' AND accountVerified='1'");
	$num = mysql_result($result, 0); 

 

I'm at a loss as to why this is happening.  Thank you for any help!!

 

Jason

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.