I have a MySQL table with three fields: username, password and name. Password has the 'password' function applied to it.
I've written a password checking script which passes in two variables: $user_name and $pass_word.
When I use the following command:
$sql = "select * from login where username='$user_name'";
it works fine; when I include the password() function, however, it breaks down:
$sql = "select * from login where username='$user_name' and password = password( '$pass_word' )";
I've checked, then checked and checked again but it seems to be fine; what obvious step am I overlooking?