getMessage()); } $query = $db->prepare('INSERT INTO `leaderboard` (`player`, `score`) VALUES (:player, :score);'); $query->execute(array("player" => strip_tags($_POST['player']), "score" => (int) $_POST['score'])); } else { header($_SERVER["SERVER_PROTOCOL"] . " 405 Method Not Allowed", true, 405); } ?>