Jump to content

Need help in fixing this code


Bickey

Recommended Posts

I'm getting this error when I use the following code. Could someone help me to fix this.

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

 

$result =sprintf("SELECT * FROM my_tbl WHERE username ='%s' || email= '%s'", mysql_real_escape_string($username), mysql_real_escape_string($email));
$resultfin = mysql_query($result);
if (mysql_num_rows ($resultfin) > 0){

 

Thanks,

Bickey.

Link to comment
https://forums.phpfreaks.com/topic/224157-need-help-in-fixing-this-code/
Share on other sites

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.