Hallo kann mir jemand helfen ich versuche vergebens die member auf dieser Seite alphabetisch zuordnen der code sieht wie folgt auf:
body,td,th {
font-size: 16px;
}
$member = array(); $xmlfile = "[http://eu.wowarmory.com/guild-info.xml?r=Lothar&gn=N...](http://eu.wowarmory.com/guild-info.xml?r=Lothar&gn=Night+shade+plants)"; $url = @file\_get\_contents($xmlfile); $xml = simplexml\_load\_string($url); foreach ($xml-\>guildInfo-\>guild-\>members-\>character as $membercount1) { if ($membercount1["rank"] == 0 || $membercount1["rank"] == 1 || $membercount1["rank"] == 2 || $membercount1["rank"] == 3 || $membercount1["rank"] == 4 || $membercount1["rank"] == 5 || $membercount1["rank"] == 7 || $membercount1["rank"] == 8 || $membercount1["rank"] == 9) { $membercount = $membercount1; } } echo " "; echo ""; echo " "; echo " "; echo " Name"; echo " "; echo " "; echo " Level"; echo " "; echo " "; echo " Volk"; echo " "; echo " "; echo " Rang"; echo " "; echo " "; echo " $membercount Aktive Member"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; foreach ($xml-\>guildInfo-\>guild-\>members-\>character as $member) { if ($member["rank"] == 0 || $member["rank"] == 1 || $member["rank"] == 2 || $member["rank"] == 3 || $member["rank"] == 4 || $member["rank"] == 5 || $member["rank"] == 7 || $member["rank"] == 8 || $member["rank"] == 9) { echo " "; echo "[".$member["name"]."](http://eu.battle.net/wow/de/character/lothar/%2522.%2524member%255B%2522name%2522%255D.%2522/simple)"; echo " "; echo " "; echo $member["level"]; echo " "; echo " "; echo " "; if ($member["genderId"] == 0) { if ($member["raceId"] == 2) { $rasse = ""; } if ($member["raceId"] == 5) { $rasse = ""; } if ($member["raceId"] == 6) { $rasse = ""; } if ($member["raceId"] == 8) { $rasse = ""; } if ($member["raceId"] == 10) { $rasse = ""; } } if ($member["genderId"] == 1) { if ($member["raceId"] == 2) { $rasse = ""; } if ($member["raceId"] == 5) { $rasse = ""; } if ($member["raceId"] == 6) { $rasse = ""; } if ($member["raceId"] == 8) { $rasse = ""; } if ($member["raceId"] == 10) { $rasse = ""; } } echo $rasse; echo " "; echo " "; echo " "; if ($member["classId"] == 1) { $klasse = ""; } if ($member["classId"] == 2) { $klasse = ""; } if ($member["classId"] == 3) { $klasse = ""; } if ($member["classId"] == 4) { $klasse = ""; } if ($member["classId"] == 5) { $klasse = ""; } if ($member["classId"] == 6) { $klasse = ""; } if ($member["classId"] == 7) { $klasse = ""; } if ($member["classId"] == 8) { $klasse = ""; } if ($member["classId"] == 9) { $klasse = ""; } if ($member["classId"] == 10) { $klasse = ""; } if ($member["classId"] == 11) { $klasse = ""; } if ($member["classId"] == 12) { $klasse = ""; } echo $klasse; echo " "; echo " "; echo " "; if ($member["rank"] == 0) { $rang = "Gilden Papa"; } if ($member["rank"] == 1) { $rang = "Meister"; } if ($member["rank"] == 2) { $rang = "Gildenrat"; } if ($member["rank"] == 3) { $rang = "Söldner"; } if ($member["rank"] == 4) { $rang = "Rudelführer"; } if ($member["rank"] == 5) { $rang = "Rudelgardist"; } if ($member["rank"] == 6) { $rang = "Twink"; } if ($member["rank"] == 7) { $rang = "Gardist"; } if ($member["rank"] == 8) { $rang = "Kämpfer"; } if ($member["rank"] == 9) { $rang = "Späher"; } echo $rang; echo " "; echo " "; } echo " "; } echo " "; ?\> Vieleicht könnt ihr mir ja den code so umbauen das es geht. MFG