Hi everyone,
I have written this quick RSS script however when I view from a browser I get all the items, however from something like RSSOwl it will only show 1 or 2 or them. Is this normal behaviour? actually I dont know much about RSS but customer wants it for their website so I need to put it in there.
When i add I can see that it find 6 articles but only a couple are shown. Is this normal for if the news is actually old or had been viewed previously?
Im not sure if its a problem with my code but here it is anyways.
<?php header("Content-type: text/xml"); ?>
<?php echo '<?xml version="1.0" encoding="iso-8859-1"?>'; ?>
<rss version="0.9.1">
<channel>
<item>
<title>RSS Feed</title>
<link>[url]http://www.url.net[/url]</link>
<description>Some description about the site</description>
</item>
</channel>
<?php
require("incs/includes.php");
require("incs/sqlconnect.php");
include("incs/classes/classes.php");
$query = "SELECT * from ws_news ORDER BY 'date' DESC";
$result = @mysql_query ($query);
while ($row = mysql_fetch_array($result, MYSQL_NUM)){
$id = $row[0];
$date = $row[1];
$title = $row[2];
$details = $row[3];
//$details = HTMLConvert($details, 'revert_short');
?>
<item>
<title><?php echo "$title"; ?></title>
<link><?php echo "$sitename"; ?></link>
<description><?php echo "$details"; ?></description>
</item>
<?php
}
?>
</rss>