" . mysql_error($mysql)); $connection = @mysql_select_db($database, $mysql); $result_exists_in_user = @mysql_query("SELECT `passwd` FROM `usergroups` WHERE `username`='$email'",$mysql) or print_base_html("Account Maintenance","Error!","Query failed. The error message reported is:

" . mysql_error($mysql)); if(mysql_num_rows($result_exists_in_user)) { $row = mysql_fetch_row($result_exists_in_user); $passwd = $row[0]; $form = get_reg_pass_email($email,$passwd); send_password($form,$email); if($password_request_success) { // echo ("
reg_pass_req.php: row = $row"); // echo ("
reg_pass_req.php: email = $email"); // echo ("
reg_pass_req.php: passwd = $passwd"); // echo ("
reg_pass_req.php: form = $form"); send_pass_req_notify(get_pass_req_notify_form($email,"Success - Password sent to user")); } print_base_html("Account Maintenance","Success!","Your password has been sent to: $email"); } else { echo("1"); $form = get_pass_req_form($email,"Could not find email address \"$email\" in database. If you just registered, Did you click on the link in the confirmation email we sent you?"); if($password_request_fail) { send_pass_req_notify(get_pass_req_notify_form($email,"Failed - Unknown user")); } print_base_html("Account Maintenance","Unknown User",$form); } } else { //echo ("
reg_pass_req.php: ispostback = FALSE"); $form = get_pass_req_form('',''); print_base_html("Account Maintenance","Type in your email address below",$form); } mysql_close($mysql); ?>