dizzleboi1 Posted April 15, 2008 Share Posted April 15, 2008 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 More sharing options...
bobinindia Posted April 15, 2008 Share Posted April 15, 2008 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 More sharing options...
dizzleboi1 Posted April 15, 2008 Author Share Posted April 15, 2008 well its a login and i tried to login and got the error. Link to comment https://forums.phpfreaks.com/topic/101164-mysql_num_rows-error/#findComment-517446 Share on other sites More sharing options...
bobinindia Posted April 15, 2008 Share Posted April 15, 2008 need more info than that. Can you post the code? Link to comment https://forums.phpfreaks.com/topic/101164-mysql_num_rows-error/#findComment-517448 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.