Jump to content

[SOLVED] Warning: mysql_num_rows(): supplied argument is not a valid MySQL result??


shadiadiph

Recommended Posts

MM sorry for a simple question but I have just stopped using my dbclass file and want to do a new site without it.

 

I keep getting the same error??

 

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

 

$checkuser = "select userID from usertbl where username='$username'";
$temps	   = mysql_query($checkuser);
$usertotal  = mysql_num_rows($temps);

 

to me it looks ok but obviously it isn't as i said i have been using a DB class until now so I am not sure. I want to stop using the class as there appear to be a few errors in the class.php

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.