Ok guys,
Essentially, im loading a simplexml_load_file from a URL like this
$stats = simplexml_load_file("http://example.com/api/api.asmx/Campaign.GetSummary?ApiKey=$apikey&CampaignID=$CID");
Which returns this
SimpleXMLElement Object
(
[Recipients] => 1
[TotalOpened] => 0
[Clicks] => 0
[Unsubscribed] => 0
[Bounced] => 0
[UniqueOpened] => 0
)
After I load that up I want to echo the info, so I try to echo it out like so
echo '<ul id="views">';
echo '<li>';
print $stats['Recipients'];
echo '</li>';
echo '</ul>';
But when it runs, I dont get any of the data, just an empty <li></li>
Any help would be greatly appreciated guys, Thanks in advance.