June 21st, 2000, 03:39 AM
How can I verify in PHP a Password that i saved in a database with the function PASSWORD() ??
June 22nd, 2000, 12:11 AM
Assuming $password is the password, pass is the field, and whatever is the table, you could do something like:
mysql_result(mysql_query(select pass from whatever where pass=password($password)),0,0))
But if you're only using password() for this basic authentication it would be better to just use PHP's crypt() function...
June 22nd, 2000, 10:24 AM
1. Thanxs for the first solution. I must test it...
2. Can you show me an expample how to use the crypt() function with php and mysql!? I have just tested it, but it doesn't work!