global $wpdb; $chpt = $_GET['chpt']; $sql = "SELECT Nom, ClassTableId FROM argancybaseball_statsgrandest.ge_championnat_annee CA INNER JOIN argancybaseball_statsgrandest.ge_championnat C ON CA.Championnat=C.Id WHERE CA.Id='".$chpt."'"; $row = $wpdb->get_row($sql);
echo «
« .$row->Nom. »
« ;
echo « [table “row-ClassTableId” not found /]
»;
echo «
Voir le calendrier d’équipe
« ;
$sql = « SELECT E.Id as Id, E.Ville AS Ville FROM argancybaseball_statsgrandest.ge_equipes E INNER JOIN argancybaseball_statsgrandest.ge_equipe_championnat_annee CA ON E.Id=CA.Equipe WHERE CA.Championnat=' ».$chpt. »‘ »;
$posts = $wpdb->get_results($sql);
echo «
- « ;
-
$posts = $wpdb->get_results($sql);
echo «
« ;
echo « « ;
echo «« ;
echo «Date « ;
echo «Match « ;
echo «Résultat « ;
echo «Lanceur gagnant « ;
echo «Lanceur perdant « ;
echo «« ;
echo «« ;
« ;
echo «
foreach ($posts as $post)
{
echo «Locaux. »‘ OR J.Team=' ».$post->Visiteurs. »‘) ORDER BY P.L »;
$pitchers = $wpdb->get_results($sql_pitchers);echo «
« .$post->MatchLib. » « ;
echo «« .$post->ScoreVisiteurs. »-« .$post->ScoreLocaux. » « ;
foreach ($pitchers as $pitcher)
{
echo «Id’>[Feuille de score] « ;
}
echo «« ;
}
echo «« ;
echo «« ;
?>
foreach ($posts as $post)
{
echo «