|
Posted by Laeronai on 10/15/85 11:41
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?
Navigation:
[Reply to this message]
|