Hallo Alex,
so hab mir mal dein Script genommen und hab es ein wenig geändert. So ist es einfach ein wenig dynamischer :-)
Hier mal ein Beispiel:
-------------------------------------------------
<?php
require_once 'nmt-config.inc.php';
header("Pragma: no-cache");
header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
header('Content-Type: application/xml');
if(isset($_REQUEST['id']))
{
$sql = "SELECT
id,
title,
message,
source_name,
source_url
FROM
Texte
WHERE id
= " . $_REQUEST['id'] . "";
$return = mysql_query($sql) OR die(mysql_error());
$Texte = mysql_fetch_assoc($return);
}
echo '<?xml version="1.0"?>';
?>
<data>
<title><?php echo $Texte['title']; ?></title>
<content><?php echo $Texte['message']; ?></content>
<source_name><?php echo $Texte['source_name']; ?></source_name>
<source_url><?php echo $Texte['source_url']; ?></source_url>
</data>
-------------------------------------------------
Gruß,
Svenja