bindValue(":password", password_hash($_POST["password"], PASSWORD_DEFAULT)); $stmt->bindParam(":userID", $_POST["u"]); $stmt->execute(); } function verifyLink(int $userID, string $hash) { $stmt = prepareQuery(" SELECT `password` FROM `user` WHERE `userID` = :userID "); $stmt->bindParam(":userID", $userID); $stmt->execute(); $password = $stmt->fetch()["password"]; return password_verify($password, $hash); }