|
Posted by Gale on 11/04/59 11:42
Laeronai wrote:
> Say that I have a table in my MySQL database that holds all the RSS
> information for my blog posts. I have link, title, and description.
> could I make an RSS feed with PHP code in it, or would that not just be
> possible? I was thinking along the lines of:
>
> while ($rssinfo = mysql_fetch_array($query, mysql_assoc)) {
> echo '<item><title>' . $rssinfo['title'] . '</title><description>' .
> $rssinfo['description'] . '</description><link>' . $rssinfo['link'] .
> '</link</item>';
> }
>
> I would put this in feed.xml or something like that, which would hold
> all the feed information. Would this code work, or would I have to use
> some other method?
>
http://codewalkers.com/seecode/607.html
[Back to original message]
|