prepare($sql); $stmt->bind_param("sss", $token_hash, $expiry, $email); $stmt->execute(); if ($mysqli->affected_rows) { $subject = "~* *..* password-shifting ~"; $body = "jump to https://eixo.codes/metal/reset-password.php?token=$token and conjure up your new password ~* *.. *"; $from = 'spells'; $headers = "From: $from"; if (mail($email, $subject, $body, $headers,)) { echo '*~```` email funnelled your way `*'; } else { echo "* .. i couldn't send you an email . please give it one more try *` "; } } echo " `` please check your inbox `*"; ?>