0

Hi guys. Okay, well I've been at this for a while and I cannot seem to figure it out. Basically, I have a simpleXML PHP file that I'm trying to"parse" (I guess it's called). All I want to do is get some info from an API XML site and display it on my site.

Anyways, I have this code and my page is blank. Please help?

<?php
$html = "";
$url = "http://isbndb.com/api/books.xml?access_key=MCIJARNT&index1=isbn&value1=9780439023528";
$xml = simplexml_load_file($url);
for($i = 0; $i < 10; $i++){

    $title = $xml->Title[$i];
    $html .= "<h1>$title</h1>";

}
echo $html;
?>
3
Contributors
4
Replies
17
Views
4 Years
Discussion Span
Last Post by diafol
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.