| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 461 人关注过本帖
标题:[求助]我的连接出现问题了
只看楼主 加入收藏
找个好老师
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2006-10-22
收藏
 问题点数:0 回复次数:3 
[求助]我的连接出现问题了

我做了一个音乐与播放器的连接,
但是就是连接不上,,请高手指点一下
index.asp
<!--#include file="Connections/conn.asp" -->
Dim rs1
Dim rs1_numRows

Set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.ActiveConnection = conn
rs1.Source = "SELECT * FROM music"
rs1.CursorType = 0
rs1.CursorLocation = 2
rs1.LockType = 1
rs1.Open()

rs1_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<div align="center">
<table width="70%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="33%" height="171" align="left" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F5F5F5">
<tr>
<td height="20" background="images/top_blue_c_bg.gif"> </td>
</tr>
<tr>
<td height="149" align="center" valign="top"> </td>
</tr>
</table></td>
<td width="2%" align="left" valign="top"> </td>
<td width="65%" align="left" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F5F5F5">
<tr>
<td height="20" background="images/top_blue_c_bg.gif"> </td>
</tr>
<tr>
<td height="149"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="70%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="70%" height="236" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="24%" align="center" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F5F5F5">
<tr>
<td height="20" background="images/top_red_c_bg.gif"> ◎音乐排行榜</td>
</tr>
<tr>
<td height="211" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1">
<%for i=1 to 3%>

<tr>
<td><p align="center"><%=rs1("musicname")%></td>
<td>
<p align="center"><a href="file8.asp?id=<%=rs1("id")%>" & <%=rs1("map")%> target="_blank">视听</a></td>
</tr>
<%rs1.movenext
next%>


</table>
</tr>
</table></td>
<td width="2%"> </td>
<td width="27%">
<table border="1" width="106%" cellspacing="0" cellpadding="0" id="table1" bordercolor="#F5F5F5" height="232">
<tr>
<td background="images/top_blue_c_bg.gif" height="21">&nbsp;◎人气排行榜</td>
</tr>
<tr>
<td height="211" align="center" valign="top"></td>
</tr>
</table>
</td>
<td width="2%"> </td>
<td width="45%"> </td>
</tr>
</table>

</body>

</html>
<%
rs1.Close()
Set rs1 = Nothing
%>



play.asp
<!--#include file="Connections/conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>云鼎国际会所</title>
</head>

<body bgcolor="#000000">
<p align="center">
<OBJECT id=MediaPlayer1
style="LEFT: 286; VISIBILITY: visible; POSITION: absolute; TOP: 64;z-index:2; width:482px; height:376px"
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=

Loading
type=application/x-oleobject height=366
classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 VIEWASTEXT>
<PARAM NAME="URL" VALUE="<%=conn.execute("select map from music where id="&trim(request.querystring("id"))&"")(0)%>">

<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>
</body>

</html>
高手帮帮看看,指点一下我。。谢谢了!

[此贴子已经被作者于2006-10-25 4:22:01编辑过]

搜索更多相关主题的帖子: 播放器 include PUBLIC music 音乐 
2006-10-25 04:01
找个好老师
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2006-10-22
收藏
得分:0 
大哥们,帮帮我好吗?

不断努力,才能不断的提高,学无止尽!
2006-10-25 15:32
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
<%=conn.execute("select map from music where id="&trim(request.querystring("id"))&"")(0)%>
你先输出这个看看是啥?
2006-10-25 16:00
找个好老师
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2006-10-22
收藏
得分:0 
哦。。。。我已经解决了,,谢谢你了斑竹大哥!

不断努力,才能不断的提高,学无止尽!
2006-10-25 18:33
快速回复:[求助]我的连接出现问题了
数据加载中...
 
   



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

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