hey guys, looked over the thread on here about rss and spent the last god knows how long trying to figure out how to get goddamn images to show up in my rss feed. Here is what I have there <?php include_once("config.php"); header("Content-type: text/xml"); print "<?xml version=\"1.0\" encoding=\"windows-1252\"?> <rss version=\"0.91\"> <channel> <title>Hilili Hosted Videos</title> <link>http://www.hilili.com/?cat=Hosted</link> <description>Hosted Videos Updated Daily</description> <language>en-us</language> <generator>Hilili Hosted Videos</generator> "; $result=mysql_query("SELECT * FROM babeloggerv3 WHERE approved='yes' ORDER BY id DESC LIMIT $rss_feeds"); while($row=mysql_fetch_array($result)) { $title=stripslashes(htmlspecialchars($row[title])); print "<item> <title>$title</title> <link>$script_url/index.php?gal=$row[id]</link> <description>$row[description]</description> <image>$script_url/babelogger_images/$row[imgname]</image> <category>$row[Hosted]</category> </item>"; } print " </channel> </rss> "; ?> Code (markup): I think I have it setup right although it's not showing the images, everything else shows
If your image link isnt coming up then your field name (imgname) is spelled incorrectly. If you want the image to show up like html, then you have to encode it to show up as html and not plain text.