ASP高手帮忙看那又问题。

来源:百度知道 编辑:UC知道 时间:2024/05/10 19:57:59
<%
strSql ="Select * From CPID where ID= 1"
Set rs=conn.Execute(strSql)
%>
<table width="100%" border="1" align="center">
<tr>
<td><table width="100%" border="0" align="center">
<tr>
<td colspan="3">首页/<%=rs("FLID")%>/<%=rs("ZFLID")%>/<%=rs("NAME")%></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0">
<tr>
<td><img src="image/800c%20335.jpg" width="335" height="335"></td>
<td><table width="100%" border="0">
<tr>
<td><div align="center"><strong><

这块有问题:
<%
set myrs=server.CreateObject("adodb.recordset")
sql="Select * From CPID where xinghao=800c order by ID"
myrs.Open sql,conn,1,1
do until myrs.EOF
%>

<tr>

<td><%=myrs("tupianxiao")%></td>
</tr>
<tr>
<td><%=myrs("NAME")%></td>
</tr>
<tr>
<td><%=myrs("userjia")%></td>
</tr>
<%
myrs.MoveNext
loop
myrs.Close
set myrs=nothing
%>
改为:
1、
sql="Select * From CPID where xinghao='800c' order by ID"
2、
应在myrs.MoveNext之后加上
if myrs.eof then exit do

什么错误,运行后的错误页面说下