这段ASP代码有错吗?

来源:百度知道 编辑:UC知道 时间:2024/05/26 04:54:48
sql="select * from helptype order by typeid"
set rs=conn.execute (sql)
dim i
i=0
do while not rs.eof and i < 7
help = help&"<TD>
<IMG height=75 src='../images/footdg.gif' width=61 border=0>
</TD>"
helpid=Cint(rs("typeid"))
sql="select * from help where typeid="& helpid &" order by id"
set rs2=conn.execute (sql)
N=0
do while not rs2.eof and N < 8
dim coolid
coolid=Cint(rs2("cool"))
if coolid=2 then
help = help&"<TD>
<DIV style='LINE-HEIGHT:120%' align=left><a href='/html/help/"&rs2("id")&".htm' target=_blank class='four'>"&rs2("name")&"</A></DIV>"
else
help = help&"<TD>
<DIV st

第七行错误:
help = help&"<TD>
语句未结束。

还有两个类似地方,全部修正后的代码如下:

<%
sql="select * from helptype order by typeid"
set rs=conn.execute (sql)
dim i
i=0
do while not rs.eof and i < 7
help = help&"<TD><IMG height=75 src='../images/footdg.gif' width=61 border=0> </TD>"
helpid=Cint(rs("typeid"))
sql="select * from help where typeid="& helpid &" order by id"
set rs2=conn.execute (sql)
N=0
do while not rs2.eof and N < 8
dim coolid
coolid=Cint(rs2("cool"))
if coolid=2 then
help = help&"<TD> <DIV style='LINE-HEIGHT:120%' align=left><a href='/html/help/"&rs2("id")&".htm' target=_blank class='four'>"&rs2("name")&"</A></DIV>"
else
help = help&"<TD> <DIV st