Is there any way I can modify the following code to only limit 5 items and then have a link where the user can click to see the remaining feeds from the rss??
Thanks,
Jeff
[FONT=Courier New]<?php
require_once ‘../magpierss/rss_fetch.inc’;
$url = ‘
$rss = fetch_rss($url);
echo ‘Site: ‘ , $rss->channel[‘title’], ‘ <br / >’;
if ( $rss and !$rss->ERROR) {
foreach ($rss->items as $item ) {
echo ‘ <p class=text><a href=”‘ . $item[link] . ‘”>’ . $item[title] . ‘ </a><br / >’;
echo ‘Publish Date: ‘ . $item[pubdate] . ‘ <br / >’;
echo $item[ description ] . ‘ </p>’ ;
}
} else {
echo ‘RSS Error: ‘ . $rss->ERROR . ‘ <br / ><br />’ ;
}
?>[/FONT]