I was just looking in the help to find out what PASSWORD does... but I can't find it.

But I can offer this advice.
You can't decypt the password, so to check if the password entered is valid, you 
encypt it, and compare the 2 hashed passwords..

Andrew
  ----- Original Message ----- 
  From: Balaji Ankem 
  To: [EMAIL PROTECTED] 
  Sent: Saturday, July 28, 2001 11:35 AM
  Subject: [PHP] regarding password in mysql?


  Hi dearest friends,

          while insertion of an employee number and password i am inserting like

  insert into employee values('$empid',PASSWORD('$passwd'));

  how to decrypt it while comparision during login.

  Thanks in advance

  Regards
  -Balaji


------------------------------------------------------------------------------


  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to