See the section of the documentation on the password function.
Insert into users (username, password) values
('joesmith',password('somepassword'));
It will encrypt your passords. then you select using the same function.
select username, password from users where username = 'joesmith' and
password('enteredpassword') = password
HTH
Curtis
Muhammad Farhan Ghazi wrote:
> How one can make a field encrypted in a table, so that it cannot even be
> seen using the select statement? I have a field in which I'm storing
> passwords and I don't want it to be visible.
>
> Ghazi, Muhammad Farhan
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php