xml version="1.0" ";?> /', '/&/'), array('<', '>', '&'),$str); return $val; } function cleanText($str) { return htmlspecialchars( stripslashes( nl2br($str))); } function writeRSS($items) { foreach($items as $key=>$val) { $body = cleanText($items[$key]['body']); echo " {$items[$key]['title']} http://www.dogpac.org/dogblog.php?{$items[$key]['id']} {$body} "; } } //get info include("./class/blogclass.php"); $rss = new blog(USER,PW,DB,HOST,0); ?> dogpac.org Blogs http://www.dogpac.org/dogblog dogpac.org is a advocacy website for people and their dogs in Central Oregon who want to access the outdoors with them and other issues Dale Friedkin PHP changeTitleLimit($limit); $ids = $rss->getRecentids(0); foreach($ids as $id) { $items[] = $rss->getBlog($id); } writeRSS($items); ?>