PASSWORD()
| From: | Victor | Date: | Thu, 29 Aug 2002 19:33:08 +0000 |
| Subject: | PASSWORD() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114544@lists.php.net to get a copy of this message | ||
Is PASSWORD() still usable? I used it in my scripts a while ago to
encrypt and decript password strings that I stored into databases, but
from some time all my scripts don't work (the login part) because I
cannot do a mysql query like so:
$sql = "SELECT * FROM users WHERE username = '$PHP_AUTH_USER' AND
password = PASSWORD('$PHP_AUTH_PW')";
or:
$sql = "SELECT * FROM users WHERE username = '$username AND password =
PASSWORD('$password')";
is this wrong?
Or am I just hallucinating?
- vic
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca