Suchy Posted June 5, 2008 Share Posted June 5, 2008 Yeah what is wrong with this? filename: rss.php <?php include ("connect.php"); $query = "SELECT * FROM _____ ORDER BY ____ DESC"; $result = mysql_query($query); $new = getRows($result); header("Content-type: text/xml"); ?> <rss version="2.0"> <channel> <title>New items</title> <link>http://www.mywebsite.com/rss.php</link> <description>New items uploaded by users</description> <?php foreach($new as $i){ ?> <item> <title><?= $i['_____'] ?></title> <description><?= $i['_____'] ?></description> <author><?= $i['_____'] ?></author> <link><?= "http://www.mywebsite.com/new.php?item=" . $i['_____'] ?></link> <pubDate><?= $i['_____'] ?></pubDate> </item> <?php } ?> </channel> </rss> In IE 7 I get: This feed contains code errors. But in Firefox it works, except for foreign characters such as ż, ł or ó little question mark inside a dimond box is displayed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.