Jump to content

Mysql error...


Drezard

Recommended Posts

Heres the error:

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\beta\core\user\user.class.php on line 77

 

Heres the code:

 


73.$query = "SELECT * FROM user_ids WHERE username='$username'";

75. $result = mysql_query($query);
   
   	77. $count = mysql_num_rows($result);

79. if ($count == 1) {


 

whats wrong?

 

Thanks, Daniel

Link to comment
https://forums.phpfreaks.com/topic/44197-mysql-error/
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.