为什么在asp文件中加上这一段代码网页就打不开了
代码如下:<table><%setrs_bigclass=server.createobject("adodb.recordset")sql_bigclass="sele...
代码如下:
<table>
<%
set rs_bigclass=server.createobject("adodb.recordset")
sql_bigclass="select * from PrBigClasss order by id desc"
rs_bigclass.open sql_bigclass,conn,1,1
do while not rs_bigclass.eof
%>
<tr>
<td width="28" height="26" align="center"><img src="images/biao01.gif" /></td>
<td width="235" align="left"><a href="product.asp?bigclassname=<%=rs_bigclass("bigclassname")%>"><%=rs_bigclass("bigclassname")%></a></td>
</tr>
<%
rs_bigclass.movenext
loop
rs_bigclass.close
set rs_bigclass=nothing
%>
</table>
把这两段代码去了就没事了:
<%
set rs_bigclass=server.createobject("adodb.recordset")
sql_bigclass="select * from PrBigClasss order by id desc"
rs_bigclass.open sql_bigclass,conn,1,1
do while not rs_bigclass.eof
%>
<%
rs_bigclass.movenext
loop
rs_bigclass.close
set rs_bigclass=nothing
%> 展开
<table>
<%
set rs_bigclass=server.createobject("adodb.recordset")
sql_bigclass="select * from PrBigClasss order by id desc"
rs_bigclass.open sql_bigclass,conn,1,1
do while not rs_bigclass.eof
%>
<tr>
<td width="28" height="26" align="center"><img src="images/biao01.gif" /></td>
<td width="235" align="left"><a href="product.asp?bigclassname=<%=rs_bigclass("bigclassname")%>"><%=rs_bigclass("bigclassname")%></a></td>
</tr>
<%
rs_bigclass.movenext
loop
rs_bigclass.close
set rs_bigclass=nothing
%>
</table>
把这两段代码去了就没事了:
<%
set rs_bigclass=server.createobject("adodb.recordset")
sql_bigclass="select * from PrBigClasss order by id desc"
rs_bigclass.open sql_bigclass,conn,1,1
do while not rs_bigclass.eof
%>
<%
rs_bigclass.movenext
loop
rs_bigclass.close
set rs_bigclass=nothing
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询