hello,
i have this code
when i execute it i have this error :Erreur d'analyse XML : aucun élément trouvé
Emplacement : http://localhost/sqltoXML.php
Numéro de ligne 2, Colonne 1 :
i have this code
Code:
<?php
//ini_set('display_errors', true);
ini_set('display_startup_errors', true);
error_reporting(E_ALL);
include_once 'connect.php';
mysql_select_db($dbname, $conn);
$sql = 'SELECT * FROM ule_1,ule_13,ule_75,ule_76,ule_77,ule_78,dule_79,ule_80,ule_81,ule_82';
$qry = mysql_query($sql) or die(mysql_error());
$xml = new DOMDocument('1.0', 'UTF-8');
if (mysql_num_rows($qry))
{
$items = $xml->createElement('items');
while ($data = mysql_fetch_assoc($qry))
{
$item = $xml->createElement('item');
foreach ($data as $k => $v)
{
$node = $xml->createElement($k, $v);
$item->appendChild($node);
}
$items->appendChild($item);
}
$xml->appendChild($items);
}
header('Content-type: text/xml');
header('Charset: utf-8');
echo $xml->saveXML();
?>
Emplacement : http://localhost/sqltoXML.php
Numéro de ligne 2, Colonne 1 :
Comment