single("id", "members", "WHERE username='" . $_POST['username'] . "' OR email='" . $_POST['email'] . "'"); //we found the member, let's create a session with this member's information if ($id) { $_SESSION['database'] = $database; //if you're using PHP 5 you need to remove the ampersand & below $_SESSION['member'] = & new member($id); //send their lost password information $error = $_SESSION['member']->sendPassword(); } else //we didn't find them anywhere $error = errorMsg("Username or email not found"); } ?>