|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
windows media player and PHP
I'm trying to make a dynamic player window using windows media player. I have the filenames stored in a database and when the user click on a link, a popup window will launch with the corresponding windows media file.
Here's what I have so far: <?php $dbh=mysql_connect ("localhost", "username", "passwd") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("database"); $result = mysql_query("SELECT * FROM DATABASE WHERE id=1"); $media_filename=$result[1]; echo <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"> print <PARAM NAME="fileName" VALUE="/media/"; echo $media_filename; echo "'> <PARAM NAME="animationatStart" VALUE="true"> <PARAM NAME="transparentatStart" VALUE="true"> <PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="true"> ?> I keep getting parse errors when I run the code. Has anybody written anything like this? Thanks CD |
|
#2
|
|||
|
|||
|
RE: windows media player and PHP
This is in the wrong forum.
Your echo tag is really messed up... You need to encapsulate it with " ", but I think you should look up the here syntax (something like <<< ) look at php.net/print or php.net/echo |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > windows media player and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|