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; } } ?> Tournament Details
Rocket League logo for background
Trojan Destiny logo
Trojan Destiny logo

format('M j, Y'); echo ("THIS TOURNAMENT EXISTS - DETAILS COMING"); } else { echo "
"; echo "

TOURNAMENT NOT FOUND!

"; echo "

Double-check your link.

"; echo "

Sorry!

"; echo "

 

"; echo "
"; } ?>