require_once "head_inc.php"; include_once 'models/funcs.football.php'; ?> </head> <body> <?php require_once "navbar.php"; require_once "football_picks.php"; ?> <?php $website = "http://localhost/UserPie-master/"; $grid = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22"); //Get User picks $view = new Football(); $currRound = $view->getCurrentRound()[0]['round']; $allTeams = $view->getAllTeams(); $userPicks = $view->getAllUserPicks(); $wildcardPick = null; $divisionalPick = null; $conferencePick = null; $superbowlPick = null; $forUserPickLoop = count($userPicks); for ($x = 0; $x < $forUserPickLoop; $x++) { if (!strcmp('wildcard', $userPicks[$x]['roundPicked'])) { $wildcardPick = $userPicks[$x]['pick']; } else { if (!strcmp('divisional', $userPicks[$x]['roundPicked'])) { $divisionalPick = $userPicks[$x]['pick']; } else {
function getAllTeams() { $picks = new Football(); echo $picks->getAllTeams(); }