Jump to content

Mysql_num_rows error


dizzleboi1

Recommended Posts

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/test/public_html/clan/checklogin.php on line 26

 

here is line 25-27

 


25.// Mysql_num_row is counting table row
26.$count=mysql_num_rows($result);
27.// If result matched $myusername and $mypassword, table row must be 1 row

 

 

basically why am i getting this error?

 

Link to comment
https://forums.phpfreaks.com/topic/101164-mysql_num_rows-error/
Share on other sites

What was your query?

 

Retrieves the number of rows from a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set. To retrieve the number of rows affected by a INSERT, UPDATE, REPLACE or DELETE query, use mysql_affected_rows().
Link to comment
https://forums.phpfreaks.com/topic/101164-mysql_num_rows-error/#findComment-517444
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.