if (count($dataA) > 0) { foreach ($dataA as $item) { $saison_name = $item["saison"]; $team_name = $item["team"]; $ligue = $item["ligue"]; $games = $item["pj"]; $goals = $item["buts"]; $assists = $item["passes"]; $points = $item["pts"]; if ($games > 0) { $moyenne = number_format($points / $games, 2, ",", " "); } else { $moyenne = "0,00"; } // info de l'équipe... $teamInfoA = $pool->getTeamInfoForecaster($team_name, $ligue); $id_team = $teamInfoA['id']; $city = $teamInfoA['city']; $team_name = $teamInfoA['name']; $abbr = $teamInfoA['abbr']; $logo = $teamInfoA['logo']; $siteWeb = $teamInfoA['siteWeb']; $tip_team = "{$city} {$team_name}"; $tip_team = str_replace("'", "\\'", $tip_team); if ($tip_team == "" || $tip_team == " " || $tip_team == " ") { $tip_team = "Not Available"; } if ($abbr == "") { $abbr = "N/A"; } // info ligue
foreach ($dataA as $item) { $saison_name = $item["saison"]; $hdb_team = $item["team"]; $ligue = $item["ligue"]; $games = $item["pj"]; $goals = $item["buts"]; $assists = $item["passes"]; $points = $item["pts"]; if ($games > 0) { $moyenne = number_format($points / $games, 2, ",", " "); } else { $moyenne = "0,00"; } // info de l'équipe... //$teamInfoA = $pool->getTeamInfoHDB($hdb_team); $teamInfoA = $pool->getTeamInfoForecaster($hdb_team, $ligue); $id_team = $teamInfoA[id]; $city = $teamInfoA[city]; $team_name = $teamInfoA[name]; $abbr = $teamInfoA[abbr]; $logo = $teamInfoA[logo]; $siteWeb = $teamInfoA[siteWeb]; $tip_team = "{$city} {$team_name}"; $tip_team = str_replace("'", "\\'", $tip_team); if ($abbr == "" && $logo == "") { $abbr = "N/A"; $tip_team = "Not Available"; } // info ligue //$ligueInfoA = $pool->getTeamLigueInfoHDB($ligue); $ligueInfoA = $pool->getTeamLigueInfoForecaster($ligue);