<?php
require_once('dbh.php');
$sql = 'SELECT * from license';
$result = mysqli_query($conn, $sql);
while ($row = $result->fetch_assoc()) {
$hash = password_verify($_POST['key'], $row['user_key']);
if ($hash != 0) {
echo "Found!";
exit();
}
}