I just started PHP linked to MySQL and I got a really annoying problem. The complete warning on my server says:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in DIRECTION REMOVED BY ME on line 20 Wrong Username or Password
I am pretty sure the Password or Username is not wrong, it's just the If/else which will give this as a result. So here is the php file which will be called when pressing the login button.
CODE HERE: http://pastie.org/private/tqubwhlha0wcyiotkgzeyg
So why does this happen?