Ver Mensaje Individual
  #8 (permalink)  
Antiguo 07/06/2010, 02:35
totolia
 
Fecha de Ingreso: mayo-2008
Mensajes: 315
Antigüedad: 15 años, 11 meses
Puntos: 7
Respuesta: Ven algo mal aqui?

Gracias por la ayuda, ahora me funciona, me muestra la info pero me sucede este error. Pueden verlo aquí: http://torneos.comxa.com/plugins/slider/slider.php

Creo que lo mejor será poner el codigo completo, no he tocado casi nunca xml asi que supongo que estoy realizando alguna locura que no vea por mi mismo.

Código PHP:
<?php
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>";
include 
"conexion.php";
header("Content-Type: text/xml");
echo 
"<cu3er>
    <settings>
        <prev_button>
            <defaults round_corners=\"5,5,5,5\"/>
            <tweenOver tint=\"0xFFFFFF\" scaleX=\"1.1\" scaleY=\"1.1\"/>
            <tweenOut tint=\"0x000000\" />
        </prev_button>
        <prev_symbol>
            <tweenOver tint=\"0x000000\" />            
        </prev_symbol>
        <next_button>
            <defaults round_corners=\"5,5,5,5\"/>            
            <tweenOver tint=\"0xFFFFFF\"  scaleX=\"1.1\" scaleY=\"1.1\"/>
            <tweenOut tint=\"0x000000\" />
        </next_button>
        <next_symbol>
            <tweenOver tint=\"0x000000\" />
</next_symbol>    
</settings>"
;
$consulta mysql_query("SELECT * FROM noticias LIMIT 10");
$contar 3;
$title $totolia[titulo];
function 
tituloseo($title) {
$titulo2 $totolia[titulo];
$espacio " ";
$guion "-";
$tituloseo str_replace($espacio $guion $titulo2);
}
while (
$totolia mysql_fetch_array($consulta)) {
$tituloseo tituloseo($totolia[titulo]);
echo 
"<slide> 
<url>"
.$totolia['imagen']."</url> 
<description> 
<link target='_blank'>noticia/"
.$totolia['imagen']."/".$tituloseo."</link> 
<heading>"
.$totolia['$titulo']."</heading> 
<paragraph>"
.$totolia['descripcion']."</paragraph> 
</description> 
<transition num='"
.$c."' slicing='vertical' direction='down'/></slide>"
$c++; 

echo 
"</cu3er>";  
?>