asp response.Write错误,高手看看
<%setconn=server.createobject("adodb.connection")conn.open"driver={microsoftaccessdri...
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("datat/asdf.mdb")
sqlnews="select * from file where id="&Trim(request("id"))
set rs=server.createobject("adodb.recordset")
rs.open sqlnews,conn,1,1
%>
<body>
文件名:<%=rs("name")%> <br>
文件内容:<%=rs("maketime")%>
<%
if Session("MM_Username") = "" then
<!--提示下面这句错误-->
response.Write "<a href='rs("downurl")'><font color=#BB1300>下载地址</font></a>"
<!--地址字段downurl要怎样调用?-->
else
response.Write "<div>sorry!本软件只允许注册会员下载! 还没注册? 15秒快速<a href='reg.asp?action=yes'><font color=#BB1300>注
册</font></a>! 已经是会员了?请在这里<a href='login.asp'><font color=#BB1300>登陆</font></a>。</div>"
end if
%>
</body> 展开
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("datat/asdf.mdb")
sqlnews="select * from file where id="&Trim(request("id"))
set rs=server.createobject("adodb.recordset")
rs.open sqlnews,conn,1,1
%>
<body>
文件名:<%=rs("name")%> <br>
文件内容:<%=rs("maketime")%>
<%
if Session("MM_Username") = "" then
<!--提示下面这句错误-->
response.Write "<a href='rs("downurl")'><font color=#BB1300>下载地址</font></a>"
<!--地址字段downurl要怎样调用?-->
else
response.Write "<div>sorry!本软件只允许注册会员下载! 还没注册? 15秒快速<a href='reg.asp?action=yes'><font color=#BB1300>注
册</font></a>! 已经是会员了?请在这里<a href='login.asp'><font color=#BB1300>登陆</font></a>。</div>"
end if
%>
</body> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询