'; $rss_xml .= ''; $rss_xml .= ''; $rss_xml .= ''; $rss_xml .= 'Bakers Marina on the Bay News and Special Events'; $rss_xml .= 'http://www.bakersmarinaonthebay.com'; $rss_xml .= 'News and Special Events from Bakers Marina on the Bay '; $rss_xml .= 'en-us'; while ($row = @mysqli_fetch_array($result, MYSQL_ASSOC)) { $date = $row["date"]; $string = htmlspecialchars(stripslashes($row["title"])); $content = stripslashes($row["content"]); if($string == '') $string = $content; $string = str_replace(" ","",$string); $id = $row["id"]; $link = 'http://www.bakersmarinaonthebay.com/news.php?id='.$id; // format the teaser $short_string = substr($string, 0, 120); $teaser = teaser_string($short_string, "80"); $rss_xml .= ''; $rss_xml .= ''.htmlspecialchars($teaser).''; $rss_xml .= ''.$link.''; $rss_xml .= ''.htmlspecialchars($content).''; $rss_xml .= ''.$date.''; $rss_xml .= ''.$link.''; $rss_xml .= ''; } $rss_xml .= ''; $rss_xml .= ''; header("Content-Type: application/xml; charset=ISO-8859-1"); print $rss_xml; ?>