0){ $user = mysqli_fetch_assoc($query); // OPTION 1: Show last password (if you save plain password - NOT SAFE) // $message = "Your last password is: ".$user['password'].""; // OPTION 2: SAFE WAY - Show password and allow reset (RECOMMENDED) $last_password = $user['password']; // or password_hint $message = "
Account Found!
Name: {$user['fullname']}
Email: {$user['email']}

Your Last Password is: {$last_password}

Click here to Login
"; } else { $message = "
No account found with that email.
"; } } ?> Recover Password - Top Star

Recover Your Password

Enter your email, system will show your last password