Hi,
I trying to dynamically embed a windows media file frim info stored in DB. The code below works fine, except it's not spitting out the filename from the database, therefore the selected file won't play.
Any suggestions?
Thanks
<?php
$dbh=mysql_connect ("localhost", "username", "passwd") or die ('I cannot connect to the
database because: ' . mysql_error());
mysql_select_db ("ettico05_mediaplaya",$dbh);
$result = mysql_query("SELECT file_name FROM mediaplaya WHERE id=1",$dbh);
$result=mysql_fetch_array($result);
$media_filename="http://www.blue-fortune.com/media/$result[1]";
?>
<OBJECT
ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<?php
echo "<PARAM NAME=\"fileName\"
VALUE = \"$media_filename\";>" ?>
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">