Im essayant de créer un flux rss que mon application droid lit mais j'ai quelques trous que je peux comprendre comment réparer la page de liaison json est http://www.mandarich.com/mandarichServer/mlb/indexbaseball.php lors de la lecture du json je peux voir où l'icône manque sur certains et ne peux pas comprendre pourquoi. surtout que pour citys comme york ney et Chicago (villes avec deux noms) et le code que j'ai pour le php est la suivante:Je ne sais pas comment lier json 100% en php
<?php
$teams["boston"] = "bostonredsox.gif";
$teams["nyyankees"] = "nyyankees.gif";
$teams["baltimore"] = "baltimoreorioles.gif";
$teams["tampa"] = "tampabayrays.gif";
$teams["toronto"] = "torontobluejays.gif";
$teams["atlanta"] = "atlantabraves.gif";
$teams["florida"] = "floridamarlins.gif";
$teams["nymets"] = "newyorkmets.gif";
$teams["philadelphia"] = "philadelphiaphillies.gif";
$teams["washington"] = "washingtonnationals.gif";
$teams["chicagosox"] = "chicagowhitesox.gif";
$teams["cleveland"] = "clevelandindians.gif";
$teams["detroit"] = "detroittigers.gif";
$teams["kansas"] = "kansascityroyals.gif";
$teams["minnesota"] = "minnesotatwins.gif";
$teams["chicagocubs"] = "chicagocubs.gif";
$teams["cincinnati"] = "cinncinatireds.gif";
$teams["houston"] = "houstonastros.gif";
$teams["milwaukee"] = "milwaukeebrewers.gif";
$teams["pittsburgh"] = "pitsburghpirates.gif";
$teams["St.Louis"] = "stlouiscardinals.gif";
$teams["LaAngels"] = "losangelesangels.gif";
$teams["oakland"] = "oaklandathletics.gif";
$teams["seattle"] = "seattlemariners.gif";
$teams["texas"] = "texasrangers.gif";
$teams["arizona"] = "arizonadiamondbacks.gif";
$teams["colorado"] = "coloradorockies.gif";
$teams["ladodgers"] = "losangelesdodgers.gif";
$teams["sandiego"] = "sandiegopadres.gif";
$teams["sanfrancisco"] = "sanfranciscogiants.gif";
$abbr["arizona"] = "ARI";
$abbr["oakland"] = "OAK";
$abbr["baltimore"] = "BAL";
$abbr["tampa"] = "TAM";
$abbr["boston"] = "BOS";
$abbr["nyyankees"] = "NYY";
$abbr["texas"] = "TEX";
$abbr["toronto"] = "TOR";
$abbr["LaAngels"] = "LAA";
$abbr["atlanta"] = "ALT";
$abbr["colorado"] = "COL";
$abbr["philadelphia"] = "PHI";
$abbr["florida"] = "FLA";
$abbr["milwaukee"] = "MIL";
$abbr["washington"] = "WAS";
$abbr["chicagosox"] = "CHW";
$abbr["cleveland"] = "CLE";
$abbr["detroit"] = "DET";
$abbr["seattle"] = "SEA";
$abbr["sanfrancisco"] = "SFO";
$abbr["St.Louis"] = "STL";
$abbr["chicagocubs"] = "CHC";
$abbr["houston"] = "HOU";
$abbr["nymets"] = "NYM";
$abbr["cincinnati"] = "CIN";
$abbr["sandiego"] = "SDG";
$abbr["ladodgers"] = "LAD";
$abbr["pittsburgh"] = "PIT";
$abbr["minnesota"] = "MIN";
$abbr["kansas"] = "KAN";
?>
utiliser des chemins absolus pour vous des images par exemple: 'http: // www.domain.com/img/1.jpg' – Pentium10
bien la plupart d'entre eux affichent sans problèmes c'est juste un couple qui ne peut pas et ne peut pas comprendre cette partie. – user305307
Je verrais si la raison pour laquelle st louis échoue a quelque chose à voir avec le fait que c'est la seule clé de tableau qui contient une période. –