rss.php og php
<?phpheader('Content-type: text/xml');
echo '<?xml version="1.0" encoding="utf-8" ?>' . "\r\n";
?>
<rss version="2.0">
<channel>
<description>XML TEST</description>
<link>" target=_blankhttp://example.com/</link>
<?
include('include/connect.php');
$res = mysql_query("SELECT * FROM nyheder WHERE id = '34' ") or die (mysql_error());
while($row=mysql_fetch_assoc($res)){
?>
<item>
<title><? echo $row['oversrkift']; ?></title>
<link>" <? echo "<a href='index.php?menu=top10nyhed&menu_id=" . $row['id'] ."'>" . $row['oversrkift'] . "</a>"; ?></link>
<guid>" <? echo "<a href='index.php?menu=top10nyhed&menu_id=" . $row['id'] ."'>" . $row['oversrkift'] . "</a>"; ?></</guid>
<description><![CDATA[<? echo $row['teksts']; ?> ]]></description>
</item>
<?
}
?>
</channel>
</rss>
find felj gider ikke det lort mere tak : )
