I have finally made a perfectly functioning forgot password email script. Emails perfectly, subject, to, from, body. except. the this
The password field name in the database is userpassword. I AM using mysql\'s encryption method password(\'userpassword\') but how do I send it to the email? I have the select query doing thing.
$sql = \"SELECT userpassword, username, useremail FROM $user_tablename WHERE useremail = \'$email\'\";
it works fine. BUT the userpassword is not passed thru to the email with $userpassword.
anyhelp? thanks all, btw I have only been working with mysql for a week now so bear with me if this is a major brain fart.
Also, is there a better/easier encryption method? that will do what I am looking to do?