useCached(); $rss->title = WEBSNAME_HERE." Events"; $rss->description = "daily news from ".WEB_URL; $rss->link = WEB_URL."/events/Events/"; $rss->syndicationURL = WEB_URL."/rss/events.xml"; $image = new FeedImage(); $image->title = WEBSNAME_HERE." logo"; $image->url = WEB_URL."/images/logo.gif"; $image->link = WEB_URL; $image->description = "Feed provided by ".WEBSNAME_HERE." Click to visit."; $rss->image = $image; $res = mysql_query("SELECT * FROM event_sys WHERE catid='16' AND WEB_ID='".WEB_Number."' ORDER BY Position DESC"); while ($data = mysql_fetch_object($res)) { $replace_array = array("’"=>""); $data->Title = strtr($data->Title, $replace_array); $data->Content = strtr($data->Content, $replace_array); $item = new FeedItem(); $item->title = $data->Title; $item->link = WEB_URL."/events/Events/"; $item->description = $data->Content; $item->date = $data->Updatedate; $item->source = WEB_URL; $item->author = WEBSNAME_HERE; $rss->addItem($item); } $rss->saveFeed("RSS1.0", "rss/events.xml"); ?>