mysqli_num_rows($result)==0 returning error [duplicate]
问题 This question already has answers here : mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc… expects parameter 1 to be resource or result (32 answers) Closed 9 months ago . I am trying to create a change password page with this php script. I want to be able to tell the user whether or not they have put in the correct username and password so that it may be changed. When I check the rows, regardless if it returns rows or not, I always get this error: Warning: mysqli