$id_vybranej_temy = $GLOBALS['tema']; // vezmi cislo temy z URL
$dotaz="select c.link,c.titulek,c.uvod,date_format(datum,'%a, %d %b %Y %H:%i:%S ') as datum,t.nazev from ".$GLOBALS["rspredpona"]."clanky as c,".$GLOBALS["rspredpona"]."topic as t ";
$dotaz.="where c.tema=t.idt and c.tema=".(int)$id_vybranej_temy." and c.visible='1' and datum<'".$dnesnidatum."' order by c.datum desc limit 0,".$GLOBALS["mnozstvi"];
/rss.php?tema=12
tá podmienka where c.tema=t.idt tam je kvoli správnemu prepojeniu tabuliek rs_clanky a rs_topic a musí byť zachovaná