|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
How can I verify in PHP a Password that i saved in a database with the function PASSWORD() ??
|
|
#2
|
|||
|
|||
|
Assuming $password is the password, pass is the field, and whatever is the table, you could do something like:
if( 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... |
|
#3
|
|||
|
|||
|
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! |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Password-Verify |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|