标题:[求助]数据库如何与播放器连接
取消只看楼主
liuxinke
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2004-10-31
 问题点数:0 回复次数:5 
[求助]数据库如何与播放器连接

<% set conn=server.createobject("adodb.connection") conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("example3.mdb") %> <% exec="select * from mekk" set rs=server.createobject("adodb.recordset") rs.open exec,conn,1,1 %> <table width="100%" border="1" cellspacing="0" cellpadding="1"> <tr> <td><%="歌手"%></td> <td><%="专辑"%></td> <td><%="歌曲"%></td> <td><%="流派"%></td> </tr> <%do while not rs.eof%> <tr> <td><%=rs("gs")%></td> <td><%=rs("zj")%></td> <td><a href="file8.asp"><%=rs("gq")%></a></td> <td><%=rs("lp")%></td> </tr> <%rs.movenext loop%> </table> 上面是index.asp代码没错,下面是file8.asp

<OBJECT id=MediaPlayer1 style="LEFT: 0px; VISIBILITY: visible; POSITION: absolute; TOP: 0px;z-index:2" codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=

Loading type=application/x-oleobject height=300 width=320 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 VIEWASTEXT> <PARAM NAME="URL" VALUE="">

<param name="AudioStream" value="-1"> <param name="AutoSize" value="0"> <param name="AutoStart" value="-1"> <param name="AnimationAtStart" value="0"> <param name="AllowScan" value="-1"> <param name="AllowChangeDisplaySize" value="-1"> <param name="AutoRewind" value="0"> <param name="Balance" value="0"> <param name="BaseURL" value> <param name="BufferingTime" value="5"> <param name="CaptioningID" value> <param name="ClickToPlay" value="-1"> <param name="CursorType" value="0"> <param name="CurrentPosition" value="-1"> <param name="CurrentMarker" value="0"> <param name="DefaultFrame" value> <param name="DisplayBackColor" value="0"> <param name="DisplayForeColor" value="16777215"> <param name="DisplayMode" value="0"> <param name="DisplaySize" value="4"> <param name="Enabled" value="-1"> <param name="EnableContextMenu" value="-1"> <param name="EnablePositionControls" value="0"> <param name="EnableFullScreenControls" value="0"> <param name="EnableTracker" value="-1"> <param name="InvokeURLs" value="-1"> <param name="Language" value="-1"> <param name="Mute" value="0"> <param name="PlayCount" value="1"> <param name="PreviewMode" value="0"> <param name="Rate" value="1"> <param name="SAMILang" value> <param name="SAMIStyle" value> <param name="SAMIFileName" value> <param name="SelectionStart" value="-1"> <param name="SelectionEnd" value="-1"> <param name="SendOpenStateChangeEvents" value="-1"> <param name="SendWarningEvents" value="-1"> <param name="SendErrorEvents" value="-1"> <param name="SendKeyboardEvents" value="0"> <param name="SendMouseClickEvents" value="0"> <param name="SendMouseMoveEvents" value="0"> <param name="SendPlayStateChangeEvents" value="-1"> <param name="ShowCaptioning" value="0"> <param name="ShowControls" value="-1"> <param name="ShowAudioControls" value="-1"> <param name="ShowDisplay" value="0"> <param name="ShowGotoBar" value="0"> <param name="ShowPositionControls" value="-1"> <param name="ShowStatusBar" value="-1"> <param name="ShowTracker" value="-1"> <param name="TransparentAtStart" value="-1"> <param name="VideoBorderWidth" value="0"> <param name="VideoBorderColor" value="0"> <param name="VideoBorder3D" value="0"> <param name="Volume" value="70"> <param name="WindowlessVideo" value="0"> </OBJECT>

求教<PARAM NAME="URL" VALUE="">这段怎么与数据库里"gq"字段连接

搜索更多相关主题的帖子: 数据库 播放器 
2004-11-25 21:13
liuxinke
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2004-10-31
得分:0 

上楼仁兄是通过主键定位查找歌曲名,这主意不错.但是我刚试过file8.asp文件运行出错.

HTTP 500 - 内部服务器错误 Internet Explorer

2004-11-26 09:59
liuxinke
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2004-10-31
得分:0 

谢谢没有剑的圣骑士!!!

2004-11-26 13:17
liuxinke
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2004-10-31
得分:0 
<PARAM NAME="URL" VALUE="">如果我要播放两个或两个以上应该怎么写?
2004-11-26 20:20
liuxinke
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2004-10-31
得分:0 

能不能生成一个wpl播放列表文件?

2004-11-26 23:52
liuxinke
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2004-10-31
得分:0 
能不能给段代码?
2004-11-27 10:45



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-8399-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.046835 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved