Código XML :
<?xml version="1.0" encoding="iso-8859-1" ?> - <imagenes> <imagen id="img01.jpg" /> <imagen id="img02.jpg" /> <imagen id="img03.jpg" /> <imagen id="img04.jpg" /> <imagen id="img05.jpg" /> <imagen id="img06.jpg" /> <imagen id="img07.jpg" /> <imagen id="img08.jpg" /> <imagen id="img09.jpg" /> </imagenes>
entonces yo ago la consulta en un archivo php y lo convierto a xml de esta manesra ago la consulta yo
Código PHP :
<?php
$con_sisnae = mysql_connect("localhost","root", "root") or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db("directorio", $con_sisnae);
$sql = "SELECT foto FROM usuarios;";
$res = mysql_query($sql);
echo "<?xml version=\"1.0\"?>\n";
echo "<imagenes>\n";
while ($row = mysql_fetch_assoc($res))
{
echo "<item>".$row["foto"]."</item>\n";
}echo "</imagenes>\n";
mysql_free_result($res);
mysql_close($con_sisnae);
?>esa esmi consulta y este seria el archivo xml que me devuelve
Código XML :
<?xml version="1.0" ?> - <imagenes> <item>http://localhost/archivos/img01.jpg</item> <item>http://localhost/archivos/img02.jpg</item> <item>http://localhost/archivos/img03.jpg</item> <item>http://localhost/archivos/img04.jpg</item> <item>http://localhost/archivos/img05.jpg</item> <item>http://localhost/archivos/img06.jpg</item> <item>http://localhost/archivos/img07.jpg</item> <item>http://localhost/archivos/img08.jpg</item> <item>http://localhost/archivos/img09.jpg</item> <item>http://localhost/archivos/img10.jpg</item> <item>http://localhost/archivos/img01.jpg</item> <item>http://localhost/archivos/img01.jpg</item> </imagenes> el primer xml si me funciona y el segundo al momento da mandarlo llamar en flash no se me aparece nada si alguine sabe deonde esta mi error se los agradeseria,, Carych
