OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
PHP and XML
This page's ID:
29225
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
i was actually playing around with this a few minutes ago. see if this might help out a bit more [code] <? $request_url = "http://www.worldofwarcraft.com/realmstatus/status.xml"; // load as file $xml_data = new SimpleXMLElement($request_url,null,true); ?> <table width="100" cellpadding="5" cellspacing="5" border="1"> <tr> <td>Name</td> <td>Type</td> </tr> <? foreach($xml_data as $rs) { echo "<tr>"; echo "<td>" . "{$rs['n']}" . "</td>"; $typeServer = $rs['t']; if($typeServer == "1"){ echo "<td>" . "Normal" ."</td>"; }elseif ($typeServer == "2"){ echo "<td>" . "(PVD)" . "</td>"; }else{ echo "<td>" . "RP" . "</td>"; } echo "</tr>"; } ?> </table> [/code] Later, C:\ <edit>took out commented lines </edit> [small](Edited by [url=http://www.ozoneasylum.com/user/1079]CPrompt[/url] on 05-30-2007 03:52)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »