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

Tournament Information

format('M j, Y'); // Print page echo "
"; echo "

Details

"; echo "
"; echo "

$tourneyName

"; echo "

 

"; echo "

$division Division

"; echo "

" . $numPlayers . "v" . $numPlayers . " — Best of $bestOf

"; echo "

$tourneyDate

"; echo "
"; echo "

Winning Team

"; echo "

$winningTeamName

"; echo "

 

"; echo "

$winner1

"; if ($numPlayers >= 2) { echo "

$winner2

"; } if ($numPlayers >= 3) { echo "

$winner3

"; } if ($numPlayers == 4) { echo "

$winner4

"; } echo "

 

"; echo "

 

"; if ($notes != "" || $notes != NULL) { echo "

Notes:

"; echo "

$notes

"; } if ($_SESSION["privileges"] == 1) { echo "

Edit

"; } echo "
"; // GAME DISPLAY - RIGHT PANEL echo "
"; echo "

Games

"; echo "
"; echo "

Coming soon!

"; } else { // TOURNAMENT NOT FOUND echo "
"; echo "
"; echo "

TOURNAMENT NOT FOUND

"; echo "
"; } ?>