vincelewin
IS-IT--Management
Hi all,
I am relatively new to this so please excuse my ignorance.
I am building an application available to registered users. Any one can register and provide a username and password. At the end of the registration I am echoing back to them the information they have added and also emailing it to them.
My problem is this, in mysql I have a table that holds the user information inc. passwords. I want to echo back the password but it just comes through encrypted and appears as alphnumberic characters.
This is the query I am running to insert the info
$sql = "INSERT INTO member (loginname,password,dateacccreated) VALUES('$_SESSION[username]',password('$userpass'),'$today')";
mysql_query($sql) or die(mysql_error());
How do I convert the data in member.password back to plain text so I can echo it out to a webpage/email?
I am relatively new to this so please excuse my ignorance.
I am building an application available to registered users. Any one can register and provide a username and password. At the end of the registration I am echoing back to them the information they have added and also emailing it to them.
My problem is this, in mysql I have a table that holds the user information inc. passwords. I want to echo back the password but it just comes through encrypted and appears as alphnumberic characters.
This is the query I am running to insert the info
$sql = "INSERT INTO member (loginname,password,dateacccreated) VALUES('$_SESSION[username]',password('$userpass'),'$today')";
mysql_query($sql) or die(mysql_error());
How do I convert the data in member.password back to plain text so I can echo it out to a webpage/email?