<?php
mysql_connect("localhost","root","");
mysql_select_db("songs");
$sql = "SELECT * FROM play";
$rs = mysql_query($sql) or die(mysql_error());
?>
<table width="50%" border="1" align="center"><?
while($row = mysql_fetch_assoc($rs))
{
?>
<tr>
<td><?=$row['name'];?></td>
<td>
<object type="application/x-shockwave-flash" data="audio/player.swf" id="audioplayer1" height="50" width="290">
<param name="movie" value="audio/player.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=files/<?=$row['name'];?>">
<param name="quality" value="high">
<param name="menu" value="true">
<param name="wmode" value="transparent">
</object>
</td>
</tr>
<?
}
?>
</table>
mysql_connect("localhost","root","");
mysql_select_db("songs");
$sql = "SELECT * FROM play";
$rs = mysql_query($sql) or die(mysql_error());
?>
<table width="50%" border="1" align="center"><?
while($row = mysql_fetch_assoc($rs))
{
?>
<tr>
<td><?=$row['name'];?></td>
<td>
<object type="application/x-shockwave-flash" data="audio/player.swf" id="audioplayer1" height="50" width="290">
<param name="movie" value="audio/player.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=files/<?=$row['name'];?>">
<param name="quality" value="high">
<param name="menu" value="true">
<param name="wmode" value="transparent">
</object>
</td>
</tr>
<?
}
?>
</table>
No comments:
Post a Comment