http://www.managerzone.com/xml/match_info....ch_id=305351715
próbowałem już różnych sposobów i zawsze udaje mi się tylko wyciągnąć nazwiska graczów z jednej drużyny. A chciałbym aby to wyglądało tak:
http://www.punishment.managerzone.ys.pl/3.php
czyli aby było:
- drużyna
- gracze - jak jakiś strzelił bramke to ilość przy nim
- druga drużyna
- gracze z drugiej drużyny - jak jakiś strzelił bramke to ilość przy nim
Próbowałem kodem:
<center> <font color="#000000"><table style="border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 1.5pt solid black; background-color: silver" fpstyle="9,011111100" width="520"> <tr> <th style="font-weight: bold; color: white; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 1.5pt solid black; background-color: maroon" width="42"><font face="Verdana" style="font-size: 9pt">Num.</font></th> <th style="font-weight: bold; color: white; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 1.5pt solid black; background-color: maroon" width="197"><font face="Verdana" style="font-size: 9pt">Drużyna</font></th> <th style="font-weight: bold; color: white; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 1.5pt solid black; background-color: maroon" width="50"><font face="Verdana" style="font-size: 9pt">Gol</font></th> <th style="font-weight: bold; color: white; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: 1.5pt solid black; background-color: maroon" width="50"><font face="Verdana" style="font-size: 9pt">Sam.</font></th> </tr></font> <?php $dane = simplexml_load_file('http://www.managerzone.com/xml/match_info.php?sport_id=1&match_id=305351715'); $color[1] = '#FFFFEF'; $color[2] = '#FFFFEF'; $color[3] = '#FFFFEF'; $color[4] = '#FFFFEF'; $color[5] = '#FFFFEF'; $color[6] = '#FFFFEF'; $color[7] = '#FFFFEF'; $color[8] = '#FFFFEF'; $color[9] = '#FFFFEF'; $color[10] = '#FFFFEF'; $color[11] = '#FFFFEF'; $color[12] = '#FFFFEF'; $color[13] = '#FFFFEF'; $color[14] = '#FFFFEF'; $color[15] = '#FFFFEF'; $color[16] = '#FFFFEF'; $color[17] = '#FFFFEF'; $color[18] = '#FFFFEF'; $color[19] = '#FFFFEF'; $color[20] = '#FFFFEF'; $color[21] = '#FFFFEF'; $color[22] = '#FFFFEF'; $color[23] = '#FFFFEF'; $color[24] = '#FFFFEF'; $color[25] = '#FFFFEF'; foreach($dane ->Match as $Match ){ } foreach($Match ->Team as $Team ){ } foreach($Team ->Player as $Player ){ ?> </table></center>
Ma ktoś pomysł jak to ugryźć?