# Selecting RSS feeds from a database

**URL:** <https://forum.kirupa.com/t/selecting-rss-feeds-from-a-database/273829>\
**Category:** programming\
**Created:** [October 21, 2008, 2:10pm UTC](https://forum.kirupa.com/t/selecting-rss-feeds-from-a-database/273829 "2008-10-21T14:10:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rocketrud](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@Rocketrud](https://forum.kirupa.com/u/Rocketrud)\
**Post date:** [October 21, 2008, 2:10pm UTC](https://forum.kirupa.com/t/selecting-rss-feeds-from-a-database/273829/1 "2008-10-21T14:10:52Z")

</div>

Pretty simple idea but a tough concept to grasp.

I would like to display like 3 rss feeds pulled from a database on my website.

They need to be pulled from a database because I want them to be displayed with stories on my website with similar content. So I would have a story table a category table and a rss table. I would have a cross reference table so I could display them where storyID = catID AND rssID = cat ID.

Any ideas of code that would simply select 3 rss feeds and display them.

If the SimplePie install could be adapted in some way that would be cool. I have it installed and have the Cache permissions set to 777.

Any help would be greatly appreciated. If you can’t supply code a website with some sort of rss feeds displayed from a database would be appreciated. I would like to display the feeds just from links in the database like [http://rss.cnn.com/rss/cnn\_topstories.rss](http://rss.cnn.com/rss/cnn_topstories.rss)
