Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/03/2006, 16:32
macbomb
 
Fecha de Ingreso: enero-2003
Mensajes: 55
Antigüedad: 21 años, 3 meses
Puntos: 0
temas.php es este:

Código PHP:
<?
echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";  
echo 
"<temes>";
$link=Conect();
$id_client=$_SESSION['id'];
$sql="SELECT * FROM TB_TEMES WHERE id_client=$id_client";
$result=mysql_query($sql,$link);
while(
$row_temes=mysql_fetch_array($result)){
    
$id_tema=$row_temes['id'];
    
$tema=$row_temes['tema'];
    
$data=$row_temes['data'];
    echo 
"\n\t<tema id='$id_tema' tit='$tema' data='$data' >$tema";
    
$sql="SELECT * FROM TB_FOTOS WHERE id_tema=$id_tema";
    
$result2=mysql_query($sql,$link);
    while(
$row_fotos=mysql_fetch_array($result2)){
        
$id_foto=$row_fotos['id'];
        
$foto=$row_fotos['nom_arx'];
        echo 
"\n\t\t<foto id='$id_foto' nom='$foto' />";
    }
    echo 
"\n\t</tema>";
}
echo 
"\n</temes>"
?>
pero tambien he probado con un archivo xml y no carga nada, se queda parado en el primer fotograma.
__________________
MACBOMB
webmast....... :adios: