PHP は正常に動作していますが、ラジオ局リストの IP を以下のコードに配置していません。
<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
<a href="http://www.shoutcheap.com/shoutcast/">shoutcheap shoutcast server hosting</a>
<a href="http://www.shoutcheap.com/icecast/">shoutcheap icecast server hosting</a></div>
<script type="text/javascript" src="http://www.shoutcheap.com/flashplayer/swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("http://www.shoutcheap.com/flashplayer/player.swf",
"ply","300","20","9","#FFFFFF");
s1.addParam("autostart","true");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars", "file=http://74.222.1.133:16682/;stream.nsv&type=mp3&volume=50&autostart=true");
s1.write("container");
</script>
このようなIPのリストがあり(http://74.222.1.133:16682)
、データベースからそれらを取得して、この行で解析したい s1.addParam("flashvars", "file=...... .........../;stream.nsv&type=mp3&volume=50&autostart=true");
これがphpコードです:
<?php
$sql = "SELECT ip FROM lista WHERE nome='Jovem Pan FM'";
$query = $mysqli->query($sql);
while($dados = $query->fetch_array(MYSQLI_ASSOC)){
echo "Estação: ".$dados["ip"];
}
?>
なぜそれが機能しないのですか?