Hi all,
I'm just learning PHP and it's interface to MySql. Thus far just about everything that I've run into has been posted in some manner here, it looks to be a great place to get some help.
The problem I'm having is with the password() passing to my MySql database. When I do an insert, it puts the encrypted password into the database, no problem.
The problem I'm having is when I try to retreive the password and compare it to what the user has entered.
$query = "select * from users where username = '$username' and password = password('$password')";
$result = mysql_query($query);
Am I missing something here? Any help would be greatly appreciated!
-Dave