I’m not sure how to make my rss feed display only one entry at a time. Please look here to see what i mean: http://pc.cyhite.com/ . If you know how, please let me know. Below is the code to display the rss feed
$url = $_GET['http://www.foxnews.com/xmlfeed/rss/0,4313,80,00.rss'];
$rss = fetch_rss("http://www.foxnews.com/xmlfeed/rss/0,4313,80,00.rss");
echo "<p>";
echo "<a href='" . $rss->channel['link'] . "' class=\"channel_title\">" . $rss->channel['title'] . "</a></span><br>";
echo "<span class=\"channel_desc\">" . $rss->channel['description'];
echo "<br>Published on: " . $rss->channel['lastbuilddate'] . "</span></p><br>";
echo "<div class=\"rss_feeds\">";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
$desc = $item['description'];
$link = $item['link'];
$author = $item['author'];
echo "<a href=$href><span class=\"feeds_title\">$title</span></a>
<br>
<div class=\"line_div_feeds\"> $author<a href=\"$link\"><img src=\"http://rss.cyhite.com/images/feedunreadarrow.png\" border=\"0\"></a></div>
<p class=\"feeds_desc\">$desc </p><br><br>
";
}
echo "</div>";