1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| if(!isset($param1)) $param1="";
$inf = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><racine>\n";
$sql = "SELECT id_bud_categorie, libelle, id_bud_classe
FROM t_bud_categorie
WHERE id_bud_classe=".$param1."
AND `id_trt` BETWEEN 1 AND 4
ORDER BY `libelle`";
$req = mysql_query($sql);
print_r($req, $return = null);
while($val=mysql_fetch_array($req)){
$inf .= "<balise1>".$val["libelle"]."</balise1>\n";
$inf .= "<balise2>".$val["libelle"]."</balise2>\n";
// ETC
}
echo $inf;
$inf .= "</racine>";
print $inf; |