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; } } ?>
"; echo "
"; echo ""; if ($numPlayers >= 2) { echo ""; } if ($numPlayers >= 3) { echo ""; } if ($numPlayers == 4) { echo ""; } echo "
"; echo "
"; if ($notes != "" || $notes != NULL) { echo "
$notes
"; } echo "Coming soon!
"; } else { echo "