no.... esa es la parte q quiero cambiar
por la otra
si ya probe asi pero no... me sale error
disculpenme por no explicaarme..
es para un reproductor flash que va a abrir el xml en php
obteniendo los datos del DB
y trabaja en UTF-8
lo he cambiado la linea 27 asi
Código PHP:
Ver original<?php
/*
This is a sample file that extracts a list of records from a mysql database and
builds a playlist from it. After looking through this file, you'll probably
'get the idea' and'll be able to connect the flash player
to your own database.
*/
// first connect to database
if ((!$dbcnx) || (!$dbselect)) { echo "Can't connect to database"; }
// next, query for a list of titles, files and links.
$query = "SELECT nombre,ruta FROM archivos_mp3";
// third, the playlist is built in an xspf format
// we'll first add an xml header and the opening tags ..
header("content-type:text/xml;charset=utf-8");
echo "<?xml version="1.0" encoding="utf-8"?>\n";
echo " <songs>\n";
// .. then we loop through the mysql array ..
echo "<song title="$row['nombre']" path="$row['ruta']"/>\n";
}
//<song title="La amante - grupo 5" path="llamado.mp3"/>
// .. and last we add the closing tags
echo " </songs>\n";
/*
That's it! You can feed this playlist to the SWF by setting this as it's 'file'
parameter in your HTML.
*/
?>
pero me da el error
Parse error: syntax error, unexpected T_DNUMBER, expecting ',' or ';' in /home/derzz/domains/derzz.leehoan.com/public_html/play.php on line 27 ayudenme