Jump to content


Check out our Community Blogs

mcanous

Member Since 18 May 2011
Offline Last Active May 18 2011 07:27 AM
-----

Topics I've Started

php array need into a table how!!!

18 May 2011 - 06:15 AM

I have this code that pulls xml data and output it into an array, now I want to organize this into a table, how can I do this, I am sort of clueless on php

Thankyou

<META HTTP-EQUIV="REFRESH" CONTENT="20">
<?php
$xmlUrl = "https://secure.ifbyphone.com/ibp_api.php?api_key=<api_key_snipped>c&action=report.call_detail&start_date=20110517&end_date=20201231&format=csv&date_added=1&phone_label=1&dnis=1&ani=1&call_duration=1&transfer_to_number=1&call_type_filter=All"; // XML feed file/URL
$xmlStr = file_get_contents($xmlUrl);
$filearray = explode("\n", $xmlStr);
while (list($var, $val) = each($filearray)) {
        ++$var;
        $val = trim($val);
        print "Line $var: $val<br />";  


}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download