Hey, Paul.
First things first, you've been on the forums for long enough to know that when you submit code you wrap it with [code] tags. Remember this or there shall be further action taken.
Second, when you insert data into a database, you should
always assume it's corrupt data, ie.
always escape the data to clear out any possibilities of mysql_injection. Please read the tutorial on this; it will show you how to escape your POST values (and GET).
Now onto your question.
I would crypt() the data as you're inserting it. This way, the original is left readable and you can use it for other stuff.
- <?Php
-
-
$uname = $_POST['unametxtbox']; // ESCAPE THESE!
-
$pwd = $_POST['pwdtxtbox']; // ESCAPE THESE!
-
-
$query = mysqli_query($link, "Insert into user_tbl(username, password) values('$uname', 'crypt($pwd)');
-
-
?>