Jump to content

php array need into a table how!!!

- - - - -

  • Please log in to reply
No replies to this topic

#1
mcanous

mcanous

    Newbie

  • Members
  • Pip
  • 2 posts
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 />";  


}

Edited by Alexander, 18 May 2011 - 01:31 PM.
Code tags + snipped API key.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users