PHP and MySQL PASSWORD() function

wxdqz

New Member
Hi there,

I am trying to make a PHP script to compare an entered password with one stores in a database which is also encrypted using the PASSWORD() function. When using the command "SELECT PASSWORD('a_password')" it works fine from the mysql command interface but how do I do this from a PHP script?

I tried everything I could think off but nothing works so far.

Any sugestions?

Thanx in advance, Eric.
 
Back
Top