error){ // Show the error print "

Error:

n

$rss->error

"; }else{ // Otherwise, we have the data, so we call the parse method $rss->parse(); // The showHeading can accept a paramater that will be used // as the tag to wrap the heading. In this case, we're wrapping // the title in an

tag //$rss->showHeading("h1"); // Display the image if there is one //$rss->showImage("left"); // If the RSS feed provides a link /*if($rss->link){ // Display it print "

Provided courtesy of:
n"; $rss->showLink(); } */ // Display the description $rss->showDescription(); // Show the news stories $rss->showStories(); } ?>