prepare("SELECT * FROM emails WHERE `EmailAddress` = ? AND `Key` = ?");
$statement->bindValue(1, $_GET['email'], PDO::PARAM_STR);
$statement->bindValue(2, $_GET['key'], PDO::PARAM_STR);
$statement->execute();
$results = $statement->fetchAll();
if(count($results) == 0)
{
die("No valid email and key specified. Please check the email you received about the migration of your servers.");
}
$statement = $database->prepare("SELECT * FROM entries WHERE `EmailAddress` = ? ORDER BY `Finished` DESC");
$statement->bindValue(1, $_GET['email'], PDO::PARAM_STR);
$statement->execute();
$vpses = $statement->fetchAll();
?>