QUERY: $query

ERR: ".mysql_error()); return $result; } /* METHOD: parse2xml * PARAMS: $htmlStr - haystack to replace text in * DESCRP: replaces unfriendly text chars with their HTML/XML friendly counterpart */ function parse2xml($htmlStr) { $htmlStr=str_replace('<','<',$htmlStr); $htmlStr=str_replace('>','>',$htmlStr); $htmlStr=str_replace('"','"',$htmlStr); $htmlStr=str_replace("'",''',$htmlStr); return $htmlStr=str_replace("&",'&',$htmlStr); } /* METHOD: update_map_db * PARAMS: $pagename - name of the page * &$page - reference to the page's vars * DESCRP: Scrapes a page for it's meta data then inserts into the database */ function update_map_db($pagename, &$page) { $link = dbconnect(); $pattern = "/