Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/11/2002, 14:53
Avatar de t0m|ta
t0m|ta
 
Fecha de Ingreso: julio-2002
Ubicación: Madrid
Mensajes: 369
Antigüedad: 21 años, 8 meses
Puntos: 3
je, creo que me estoy perdiendo algo, yo me he puesto a intentar generar el código como si fuese un php normal que generara html,

Código PHP:
<?php echo('<?xml version="1.0" encoding="iso-8859-1" ?>');

include(
'/home/sites/www.lolailo/connect.inc');
include(
'/home/sites/www.lolailo//variables.php');

?>

 
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns="http://purl.org/rss/1.0/">
- <channel rdf:about="<?php echo $inicio?>">
  <title><?php echo $sitename?></title> 
  <link><?php echo $inicio?></link> 
  <description>::..:: tomatoma ::..:: Instrucciones de andar por casa... para los que no distinguimos una cafetera de un ordenador...</description> 
  <dc:language>en-us</dc:language> 
  <dc:creator /> 
  <dc:date> <?php echo date ("l dS of F Y h:i:s A");?></dc:date> 
  <admin:generatorAgent rdf:resource="http://www.oreillynet.com/pub/a/network/2000/08/25/magazine/rss_tut.html" />

<?php


$sql 
"SELECT topic_id,topic_title,topic_time,topic_views, username, forum_id FROM manual_topics, phpbb_users WHERE forum_id <> 3 AND forum_id <> 11 AND forum_id <> 1 AND forum_id <> 25 AND forum_id <> 24  AND forum_id <> 13  AND user_id = topic_poster  ORDER BY topic_time DESC LIMIT 0, 15";
    
$result = @mysql_query($sql);
     if (!
$result) {
        echo (
"Error en la query 1");
        exit();
    }

    while (
$row = @mysql_fetch_row($result))
     {  

 
$topic[$e]['topic_id'] = $row["0"];
 
$topic[$e]['topic_title']= $row["1"];
 
$topic[$e]['topic_time'] = date('d.m.y',$row["2"]);
 
$topic[$e]['topic_views'] = $row["3"];
 
$topic[$e]['username']= $row["4"];
  
$topic[$e]['forum_id']= $row["5"];


?>


  <item rdf:about="http://www.tomatoma.ws/articulo.php?topic_id=<?php echo $topic[$e]['topic_id'] . "&forum_id=" $topic[$e]['forum_id'];?>" />
           <title><?php echo  $topic[$e]['topic_title'];?></title>
           <link>[url]http://www.tomatoma.ws/articulo.php?topic_id=[/url]<?php echo $topic[$e]['topic_id'] . "&forum_id=" $topic[$e]['forum_id'];?></link>


<?php

    
}


?>
</item>
</rdf:RDF>
Eso del XML parser se me escapa :-/, puedes darme pistas para que estudie un poco más?

Gracias por responderme, estoy a punto de tirarme de los pelos :P
__________________
:ojotes: t0m|ta - IHQ :ojotes:
No tengo palabras
Instrucciones de andar por casa