setReadOnly(); $db = DB::db(); $connect=$db->get(); $query = "select map from history where year='$year' and month='$month'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $history = MYDB_fetch_array($result); if(!$history['map']) { exit(1); } $map = $history['map']; $map = str_replace('<_quot_>', "'", $map); $map = str_replace('<_dquot_>', '"', $map); echo $map;