i am using php for creating xml for my flash player, but it works fine in firefox, but giving error(can't find xml file) error in internet explorer. i am using a php
<?php
$fid = $_GET['id'];
$db_name = "musicq"; //mysql name
$db_host = "localhost"; //mysql host
$db_user = "musicq"; //mysql user
$db_pass = "musicq"; //mysql password
mysql_connect($db_host,$db_user,$db_pass) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());
$result = mysql_query("SELECT * FROM mp3 WHERE id LIKE '$fid'");
while($r=mysql_fetch_array($result))
{
$album=$r["album"];
$date=$r["date"];
$artist=$r["artist"];
$user=$r["user"];
$category=$r["category"];
$id=$r["id"];
$img=$r["img"];
$text1=$r["text1"];
$link1=$r["link1"];
$text2=$r["text2"];
$link2=$r["link2"];
$text3=$r["text3"];
$link3=$r["link3"];
$text4=$r["text4"];
$link4=$r["link4"];
$text5=$r["text5"];
$link5=$r["link5"];
$text6=$r["text6"];
$link6=$r["link6"];
$text7=$r["text7"];
$link7=$r["link7"];
$text8=$r["text8"];
$link8=$r["link8"];
$text9=$r["text9"];
$link9=$r["link9"];
$text10=$r["text10"];
$link10=$r["link10"];
$text11=$r["text11"];
$link11=$r["link11"];
$text12=$r["text12"];
$link12=$r["link12"];
$text13=$r["text13"];
$link13=$r["link13"];
$text14=$r["text14"];
$link14=$r["link14"];
$text15=$r["text15"];
$link15=$r["link15"];
}
?>
<?
header("content-type:text/xml;charset=utf-8");
echo "<player showDisplay='yes' showPlaylist='yes' autoStart='yes'>\n";
{echo "<song path='$link1' title='$text1'/>";}
{echo "<song path='$link2' title='$text2'/>";}
{echo "<song path='$link3' title='$text3'/>";}
{echo "<song path='$link4' title='$text4'/>";}
{echo "<song path='$link5' title='$text5'/>";}
{echo "<song path='$link6' title='$text6'/>";}
{echo "<song path='$link7' title='$text7'/>";}
{echo "<song path='$link8' title='$text8'/>";}
{echo "<song path='$link9' title='$text9'/>";}
{echo "<song path='$link10' title='$text10'/>";}
{echo "<song path='$link11' title='$text11'/>";}
{echo "<song path='$link12' title='$text12'/>";}
{echo "<song path='$link13' title='$text13'/>";}
{echo "<song path='$link14' title='$text14'/>";}
{echo "<song path='$link15' title='$text15'/>";}
echo "</player>\n";
?>
it gets id from a url in get mode.
script live at :-
http://www.rdxzone.mobi/flisten.php?id=2
at this url it works fine at firefox,
but when browse in internet explorer it gives error (can't fine xml)
now about xml:-
this is the url of php to xml file.when user call for play the songs, call to this ( mp3player.swf?playlist=testplay.php?fid=2)
php to xml file url
http://www.rdxzone.mobi/testplay.php?fid=2 (works,open fine at firefox and internt explorer.)
the error is that xml loads fines at firefox but not in IE.
xml format is correct as per i get in flash player pack.
how can i remove this error
@suri,
Maybe it's because Internet explorer requires a different form of the object element:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"><param name="movie" value="myContent.swf" />