RE: [PHP] MySQL password()
| From: | David Freeman | Date: | Tue, 30 Jul 2002 07:17:30 +0000 |
| Subject: | RE: [PHP] MySQL password() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110310@lists.php.net to get a copy of this message | ||
> Mmm.. think you misinterpreted my question...
>
>
> http://www.mysql.com/doc/M/i/Miscellaneous_functions.html
>
> PASSWORD(str)
> how do you unPASSWORD(str) in PHP?
Basically, you don't.
Instead, what you do is use the password that was provided as user
input. You create a suitable database query where one of the select
criteria is PASSWORD(user_input_password) - then if you get a match they
must have entered the right password.
CYA, Dave