Tengo este código:
Código:
que metira este error:<? header("Content-type: text/xml"); echo '<?xml version="1.0"?>'; include ("conexion.php"); $conexion = mysql_connect ($host, $user, $pass); mysql_select_db ($base, $conexion); echo '<gallery frameColor="0xFFFFFF" frameWidth="15" imagePadding="20" displayTime="5" enableRightClickOpen="true">'; $sql = "SELECT * FROM dj_fotos where id_galeria='$id' ORDER BY id asc"; $result = mysql_query($sql, $conexion); if ($row = mysql_fetch_array($result)) { mysql_field_seek($result,0); do { $nombre=$row['nombre']; $fecha=$row['fecha']; $foto=$row['foto']; ?> <image> <url>../fotos/<?php echo $foto; ?></url> <caption><?php echo $nombre; ?></caption> <width>800</width> <height>600</height> </image> <?php } while ($row = mysql_fetch_array($result)); } echo '</gallery>'; ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/emporia/domains/emporia.com.ar/public_html/pruebas/versus/imagenes/gallery.php:1) in /home/emporia/domains/emporia.com.ar/public_html/pruebas/versus/imagenes/gallery.php on line 2
Pero luego me genera los elementos.
El tema es que yo lo tengo que leer desde otro archivo,
que tiene este comando js:
Código:
asi que supongo que por el warning ese es que no me lo lee...fo.addVariable("xmlURL", "gallery.php?id=<?php echo $id; ?>");
si alguien puede ayudarme, agradecido.