if ($email) {
include_once '../db.php';
$check = mysql_query("SELECT * FROM brokers WHERE email = '".addslashes($email)."' LIMIT 10")or die(mysql_error());
$check2 = mysql_num_rows($check);
if ($check2 == 0) {
echo "Sorry! No registered member found with this email..
If your not sure what email address you used please contact us.";
die;
}
if ($check2) {
while($info = mysql_fetch_array( $check )) {
$i++;
$username = $info['username']; $pass = $info['pass']; $personname = $info['personname'];
@mail("$email","RightBiz Username/Password Request A/C.{$i}","Dear ".ucwords($personname).",\n\nWe received your request for RightBiz.co.uk Username or Password.\n\nYour Username and Password are below:\n\nUsername: $username\nPassword: $pass\n\nPlease contact us using our form if we can be of further assistance from the URL below:\n\n//www.rightbiz.co.uk/contact_us/\n\nThank you,\nRightBiz.co.uk","From: ");
}
echo "SUCCESS!
Your user name and password has been email to $email
Thank you for using RightBiz Services!";
die;
}
}
?>
Forgotten Your Username or Password?
To retrieve your forgotten username or password please type your email address
and click Submit
If your not sure what email address you used? please
contact us.