0){ $rss = new UniversalFeedCreator(); $rss->useCached(); $rss->title = "Participarea tinerilor in Moldova"; $rss->description = "Participarea tinerilor in Moldova | Anunturi si noutati"; $rss->link = "http://www.tineri.md"; $rss->syndicationURL = "http:/www.tineri.md"; $res = mysql_query("SELECT * FROM news WHERE news_tip = 'noutati' OR news_tip = 'anunturi' ORDER BY news_data DESC, news_id DESC LIMIT 20"); while ($data = mysql_fetch_object($res)) { $item = new FeedItem(); $item->title = $data->news_titlu; $item->link = "http://www.tineri.md/index.php?pag=n2&opa=view&tip=".$data->news_tip."&id=".$data->news_id."&l=".$data->news_limba.""; $item->description = $data->news_intro; //$item->date = $data->pagini_news_data; $item->source = "http://www.tineri.md"; $item->author = "Participarea tinerilor in Moldova"; $rss->addItem($item); } $rss->saveFeed("RSS2.0", "news/news.xml"); } ?>