红色警戒3苏联通关:asp出错了,求助
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 11:20:00
<%
dim username
username=request.cookies("username")
%>
<body>
<%
'连接数据库db.mdb并打开shoucang表,选出与登陆用户ID相等的记录
exec="Select * From shoucang where read=0 and username="&username&""
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%do while not rs.eof%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%do while not rs.eof%><tr>
<td><%=rs("name")%></td>
<td><%=rs("url")%></td>
<td></td>
<td></td>
</tr><%
rs.movenext
Loop
%>
</table>
运行时提示:
Microsoft VBScript 编译器错误 错误 '800a03fb'
缺少 'Loop'
/shoucang.asp,行 30
希望高手能帮忙!
soucang.asp就是本文件。去了第一行,还是不行的,提示:
错误 '80004005'
/shoucang.asp,行 18
dim username
username=request.cookies("username")
%>
<body>
<%
'连接数据库db.mdb并打开shoucang表,选出与登陆用户ID相等的记录
exec="Select * From shoucang where read=0 and username="&username&""
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1
%>
<%do while not rs.eof%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<%do while not rs.eof%><tr>
<td><%=rs("name")%></td>
<td><%=rs("url")%></td>
<td></td>
<td></td>
</tr><%
rs.movenext
Loop
%>
</table>
运行时提示:
Microsoft VBScript 编译器错误 错误 '800a03fb'
缺少 'Loop'
/shoucang.asp,行 30
希望高手能帮忙!
soucang.asp就是本文件。去了第一行,还是不行的,提示:
错误 '80004005'
/shoucang.asp,行 18
<%do while not rs.eof%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
去了上面的第一行。
不是,出错的是shoucang.asp
需要shoucang。asp的源代码
rs.open exec,conn,1,1改为
rs.open exec,conn