FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Problem writing RSS View next topic
View previous topic
Post new topicReply to topic
Author Message
chris_p



Joined: 22 Nov 2010
Posts: 1

PostPosted: Mon Nov 22, 2010 5:03 am Reply with quoteBack to top

Hi everyone. I have written a PHP script gets data from a MySQL database and attempts to convert it to an RSS feed. The problem I am having is that when I preview the feed the "article_type", "article_author", "article_author2" and "article_company" information is not showing up in the feed. Have I coded this wrong? Thanks for any help.

Code:

while($rss_array = mysql_fetch_array($rss_rs))
      {
         $xml .= "<item><title><![CDATA[" . $rss_array['article_title'] . "]]></title>
                   <link><![CDATA[http://www.professionalperspectives.co.uk/index.php?skip=true&article=" . $rss_array['article_number'] . "]]></link><guid><![CDATA[http://www.professionalperspectives.co.uk/index.php?skip=true&article=" . $rss_array['article_number'] . "]]></guid><description><![CDATA[" . str_replace("'", "", $rss_array['article_description']) . "]]></description>
                  <article_type>" . $rss_array['article_type'] . "</article_type>
                  <article_author>" . $rss_array['article_author'] . "</article_author>
                  <article_author2>" . $rss_array['article_author2'] . "</article_author2>
                  <article_company>" . $rss_array['article_company'] . "</article_company>
                </item>";
      }

View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme