Hi,
So far I have got this code:
PHP Code:
<?
$feed_url = "http://www.url.com";
$response = file_get_contents($feed_url);
$xml = simplexml_load_string($response);
foreach($xml->channel->item as $one_item)
$i = 0;
while ($i != 5) {
echo $one_item->title."<BR>";
$i++;
if ($i == 5) break;
}
?>
I want it so that it show's the last 5 entries, but that's the best I could do and it's showing the first entry 5 times.
Any help would be great, thanks.