hey everyone i have a problem with a login script i'm doing and have narrowed it down to part where when a user signs up for an account and indicates a password, i specifed that field to be encrypted like so:
password('$userpassword');
when entered into the database.
The big problem is that when i pull a query like so:
$query = "SELECT * FROM user WHERE name = '$username' AND password = password('$password')";
it either hangs in the script, i get an error or nothing happens at all.
So what i tried to do is take that password() function out and not have the passwords encrypted i pulled the query like so:
$query = "SELECT * FROM user WHERE name = '$username'";
and it all seems to work. But is there a fix to my problem and i know i would need to encrypt my passwords for security reasons.
any help would be greatly appreciated. Thanks again everyone.