Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hello, i maded login page, but when i try to login, it say "Login Failed, Invalid Input!". In error_log: "PHP Warning:  mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home2/minerdog/public_html/ChatPhp/login.php on line 27". my code: "

			$_SESSION['msg'] = "Login Failed, Invalid Input!";
			header('location: index.php');

" Help me :(

Share this post

Link to post
Share on other sites

So this means your query isn't returning 0 rows. The likely causes are:

  • The provided login details are actually incorrect.
  • The provided details are correct but there's a mismatch in your comparison algorithm (e.g., the encrypted password is stored one way but the match is checked in another way).
  • Neither of the above is true but you have a syntax error with your query.


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...