'; $rss_xml .= ''; $rss_xml .= ''; $rss_xml .= ''; $rss_xml .= 'Bakers Marina Group News and Special Events'; $rss_xml .= 'http://www.bakersbasinmarina.com'; $rss_xml .= 'News and Special Events from Bakers Marina Group'; $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.bakersmarinagroup.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; ?>