<?php require_once 'lib/db.php'; require_once 'lib/competition.php'; require_once 'lib/team.php'; require_once 'lib/game.php'; $con = DB::connect(); $matchid = $_GET["match"]; $match = match::select($con, $matchid); $number = $match->Number; session_start(); $compid = $_SESSION["competitionid"]; $comp = competition::select($con, $compid); $prevmatch = match::selectByNumber($con, $compid, $number - 1); $nextmatch = match::selectByNumber($con, $compid, $number + 1); include 'header.php'; include 'navbar.php'; $red = $match->RedAlliance; $blue = $match->BlueAlliance; ?> <label class="heading">Match <?php echo $number; ?> </label><br/> <br/> <table class='scout_table'> <tr> <td class='team red'><?php echo $red->TeamOne; ?> </td>