wygląda to tak:
<?php
$sql=mysql_query('SELECT ID_BOARD,subject,ID_TOPIC,posterTime,body from `smf_messages` where ID_BOARD=1 group by ID_TOPIC order by posterTime DESC limit 20'); //echo 'SELECT ID_BOARD,subject,ID_TOPIC,posterTime,body from `smf_messages` where ID_BOARD=107 group by ID_TOPIC order by posterTime DESC limit 20';
{
// wyswietlanie newsa kazdego
$tresc_pliku=$tresc_pliku.'
<item>
<link rel="alternate" href="http://xxx/news.php?id='.$wiersz[2].'"/>
<guid>http://xxx/news.php?id='.$wiersz[2].'</guid>
<pubDate>'.date("r",$wiersz[3]).'</pubDate> </item>';
}
?>
a wynik wygląda tak:
<item>
<title>Przechadzka po Eltnen - Film</title>
<link rel="alternate" href="http://xxxl/news.php?id=1133"/>
<guid>http://xxx/news.php?id=1133</guid>
<pubDate>Thu, 21 May 2009 12:46:50 +0100</pubDate>
<description>& #13; & #32;& #13; & #32;& #13; & #32; & #32;& #13; & #32; & #32; & #32;& #13;& #13; & #32; & #32; & #32;& #13; & #32... Szczegóły na Portalu xxx</description>
</item>
<item>