public function StoreRecoveryHash($EmailAddress) { $this->Connect(); $Rows = null; if ($Statement = $this->MySQLi->prepare("UPDATE users SET recovery_hash = ? WHERE users.user_email = ?")) { $RecoveryHash = UserManagement::GenerateRecoveryHash(); $Statement->bind_param("ss", $RecoveryHash, $EmailAddress); $Statement->execute(); $Rows = $this->MySQLi->affected_rows; if ($Rows == 1) { } $Statement->close(); } $this->Disconnect(); return $RecoveryHash; }