I looked through the tutorials for info about this, but I couldn't find exactly what I was looking for.
I'm using PASSWORD() to encrypt a password. It uploads to the database in an encrypted form, but when I try to call confirm a password at login, I can't get the two to match. I know it's a PASSWORD issue, because if i get rid of it and submit info without any kind of encryption, it works.
Here's what my abbreviated code looks like:
Code:
//register script
$query = "INSERT INTO users (username, password) VALUES (PASSWORD('$password'))";
//login script
$query = "SELECT info FROM users WHERE (username = '$u' AND password = PASSWORD('$p'))"
Any help is greatly appreciated!


