0

我的 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"];
    }
?>

知道为什么这不起作用吗?

4

0 回答 0