Jump to content


Photo

PASSWORD() function in MySQL ....???


  • Please log in to reply
No replies to this topic

#1 marco-marco

marco-marco
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 22 November 2003 - 07:18 PM

I changed over to MySQL version 4.1 Ever since i did this i have not been able to retrive a password in my php script.

I have changed the length to 41 bytes in the tables and set new passwords to test, but there still not working.

any ideas why :?:

ther querys in using are these. im sure these arn\'t wrong

INSERT INTO customer (custID, pass) values (\'1\',PASSWORD(\'mypass\'))

and to retreive the values

SELECT * FROM customer WHERE custID = \'1\' AND pass = PASSWORD(\'mypass\')

the result is empty.... :roll:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users