MySQL Password Encryption

From: Date: Thu, 08 May 2003 18:21:03 +0000
Subject: MySQL Password Encryption
Groups: php.db 
Request: Send a blank email to php-db+get-27586@lists.php.net to get a copy of this message
Hi, I was wondering if I could get some MySQL help for the PHP file I'm writing. I'm using the password command to encrypt my passwords in MySQL. Here is a simple line: mysql> insert into fc_Customer (User_Password) values(password("abcd")); Query OK, 1 row affected (0.00 sec) However, when I try to select the line by searching on the password here is the response: mysql> select * from fc_Customer where User_Password=password("abcd"); Empty set (0.00 sec) I can view see that the record was added and that the password was encrypted, but I can't compare it or select it using password function. Can someone please help. Thanks!!! Doug Coning

« previous php.db (#27586) next »