Password field

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
When I insert a row in phpMyAdmin I can chose Password in the dropdown menu beside the textbox that I enter something into. How would I do that through a php query?
 
use this function with the fieldvalue:
Code:
password("you'repassword")
and mysql will encrypt it.

There is also a topic here somewhere with a PHP-function that does the same in PHP itself.

Greetz Daan
 
Maybe I'm doing it wrong, because its only show it as text, its not encrypting into he field. Could you maybe show me a sample in an INSERT query?
 
Code:
insert into mytable values("some normal field",password("yourepassword"));

Greetz Daan
 
Thanks, stupid me... I was doing it like this:

Code:
insert into mytable values("some normal field",'password("yourepassword")');
 
Back
Top