You are here: RSS with PHP and MySQL « PHP Programming Language « IT news, forums, messages
RSS with PHP and MySQL

Posted by Laeronai on 11/18/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация