1

I have been following these tutorials: http://www.youtube.com/watch?v=FUI2JDaNpk0 but for some reason when I enter the correct password I get this error:

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/login.php on line 12

2
  • Please show the code that causes the problem. Commented Jan 23, 2014 at 23:23
  • I will leave it to someone else to hassle you for using the deprecated and dangerous mysql_ API. Commented Jan 23, 2014 at 23:24

1 Answer 1

1

it seems like your mysql_query operation failed. When queries fail they return false, and when they succeed they return a record set. It makes no sense to say mysql_num_rows(false); and that's why you're getting this error.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.