Hi,
I found an article which explains how to create a simple feed and created this:
http://www.theirishdanceplace.com/rss/feeds/articles/index.php
And validated it using:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.theirishdanceplace.com%2Frss%2Ffeeds%2Farticles%2F
The validation says its ok (exept that ive not specified a guid)
but when i try adding it to my.yahoo.com it doesnt work.
This is the code i used to create the feed:
<?php
$query_articles = "SELECT a_id, a_title, a_body, DATE_FORMAT(a_udate, '%a, %d %b %Y %T') as date FROM article WHERE a_active = '1' ORDER BY a_udate DESC LIMIT 0,10";
$articles = mysql_query($query_articles, $tidp) or die(mysql_error());
$row_articles = mysql_fetch_assoc($articles);
$totalRows_articles = mysql_num_rows($articles);
header('Content-Type: text/xml'); ?>
<rss version="2.0">
<channel>
<title>The Irish Dance Place Articles</title>
<description>Our most recent articles!</description>
<link>http://www.theirishdanceplace.com/articles.php</link>
<language>en-us</language>
<category>All Publications</category>
<?php do { ?>
<item>
<title><?=htmlentities(strip_tags($row_articles['a_title'])); ?></title>
<description><?=htmlentities(substr(strip_tags($row_articles['a_body'],'ENT_QUOTES'),0,200));?></description>
<link>http://www.theirishdanceplace.com/read_article.php?article_id=<?=$row_articles['a_id'];?></link>
<pubDate><?=$row_articles['date']; ?> GMT</pubDate>
</item>
<?php } while ($row_articles = mysql_fetch_assoc($articles)); ?>
</channel>
</rss>
Is there any reason this is not working?
Thanks in advance,
Danny