Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old March 3rd, 2003, 02:40 PM
chopperdave chopperdave is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 chopperdave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 5th, 2003, 11:23 PM
webhappy webhappy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Silicon Valley, CA, USA
Posts: 203 webhappy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > windows media player and PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway