Jump to content

RSS Feed error


graham23s

Recommended Posts

Hi Guys,

 

i have made a basic rss feed in PHP but i get the error:

 

An invalid character was found in text content.

Line: 60 Character: 92

 

Ingredients per 0.6ml: Yellow to orange liquid containing - Vitamin C (Ascorbic Acid) 40mg

 

^ the above is line 60, my code for looping the data from mYSQL is:

 

while($result = mysql_fetch_array($doGet)){
?>
     <item>
        <title><?php echo htmlentities(strip_tags(($result['product_name']))); ?></title>
        <description><?php echo htmlentities(strip_tags($result['product_description'],'ENT_QUOTES'));?></description>
        <link>http://www.site.co.uk/product-information.php?id=<?php echo $result['id'];?></link>
        <pubDate> <?=strftime( "%a, %d %b %Y %T %Z" , $result['pubDate']); ?></pubDate>
     </item>  
<?php } ?>  

 

is there something else i need to do to the data to make it usable?

 

thanbks for nay help guys

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/154662-rss-feed-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.