setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Get the division from the page $tourneyUID = $_GET["tournamentUID"]; // If we want all the data, we don't need to select a division in the SQL query $sqlGetTourneyInfo = $conn->prepare("SELECT * FROM " . $tournamentDataTableName . " WHERE tournamentUID='" . $tourneyUID . "'"); $sqlGetTourneyInfo->execute(); } catch (PDOException $e) { // failed connection echo "Connection failed: " . $e->getMessage(); } $tourneyResults = $sqlGetTourneyInfo->fetch(PDO::FETCH_ASSOC); $tourneyExists = false; if (isset($tourneyResults)) { if (mb_strtolower($_GET["tournamentUID"]) == mb_strtolower($tourneyResults["tournamentUID"])) { $tourneyExists = true; } } ?>
Double-check your link.
"; echo "Sorry!
"; echo ""; echo "