mam taki kod:
<odds_list> <sport id="1000093178" name="Cricket" main_group_id="1000093178"> <pool id="1000093838" name="The Ashes - Series" main_group_id="1"></pool> </sport> <sport id="1000093178" name="Golf" main_group_id="2"> <pool id="1000093838" name="The Ashes - Series" main_group_id="2"></pool> <pool id="1000093838" name="The Ashes - Series" main_group_id="2"></pool> <pool id="1000093838" name="The Ashes - Series" main_group_id="2"></pool> <pool id="1000093838" name="The Ashes - Series" main_group_id="2"></pool> </sport> <sport id="1000093178" name="Pilka" main_group_id="3"> <pool id="1000093838" name="The Ashes - Series" main_group_id="3"></pool> <pool id="1000093838" name="The Ashes - Series" main_group_id="3"></pool> <pool id="1000093838" name="The Ashes - Series" main_group_id="3"></pool> <pool id="1000093838" name="The Ashes - Series" main_group_id="3"></pool> </sport> </odds_list>
i teraz z pobieraniem tytulow, id (pilka, golf, crickiet) w SimpleXML nie ma problemu...
jednak chce najpierw pobrac tytul a poniez pod nim wyswietlic wszystkie wartosci name z pól "pool"
ma to mnie-wiecej tak wygldac:
Cricket:
-The Ashes - Series
Golf:
-The Ashes - Series
-The Ashes - Series
-The Ashes - Series
-The Ashes - Series
itd...
problem w tym ze nie wiem jak mam te elementy pobrac wedlog main_group_id...
pomoze ktos?
