atom feed2 messages in com.googlegroups.professional-phpIssue with PHP/MySql generated RSSv2....
FromSent OnAttachments
zninjanetJan 10, 2008 6:39 pm 
j....@actualsizecreative.comJan 11, 2008 7:50 am 
Subject:Issue with PHP/MySql generated RSSv2.0 script...
From:zninjanet (
Date:Jan 10, 2008 6:39:25 pm

I built a php script that generates an rss document. By adding an apache handler the sever processes my .rss file as a php application file. The problem is that any ' or " quotation marks show up as ? question marks in the final result of the rss feed content. Does anyone know how I can fix this?

Thanks in advance for any help. :0)


<? header('Content-type: text/xml'); ?>

<?php include("include/db_connect.php"); ?> <?php $query = "SELECT id, title, description, pubdate FROM news ORDER BY id DESC LIMIT 0,15"; $result = mysql_query($query) or die('Error : ' . mysql_error()); ?>

<rss version="2.0"> <channel> <title> Boss-Man Bar-B-Que - Official Home Of Boss-Man!</title> <description>Boss-Man BBQ News Feed</description> <link></link> <copyright>Copyright 2007-2010 Boss-Man BBQ - All Rights Reserved</ copyright> <language>en-us</language> <?php while(list($id, $title, $description, $pubdate) = mysql_fetch_array($result, MYSQL_NUM)) {

?> <item> <title><?php echo $title;?></title> <description><?php echo $description;?></description> <link><?php echo $id;?></link> <pubdate><?php echo $pubdate;?></pubdate> </item> <?php }

include 'include/db_disconnect.php'; ?>