<%
id = request.form("name")
xibie=session("id")
<%
idArr = split(id,",")
for i=0 to ubound(idArr)
%>
<%sql = "delete from " & xibie & " where 学号= '" & trim(idArr(i)) &"'"
conn.execute(sql)
next
Response.Redirect("shanchu.asp")
%>
执行这个文件后,出现如下错误:
错误类型:
Microsoft JET Database Engine (0x80040E14)
FROM 子句语法错误。
/myasp/lianxi/shanchu.asp, 第 51 行
其中shanchu.asp的第51行附近内容为:
49 set rs=server.createobject("adodb.recordset")
50 sql="select * from " &xibie
51 rs.open sql,conn,1,3
52 do while not rs.eof
其中shanchu.asp的第51行附近内容为:
49 set rs=server.createobject("adodb.recordset")
50 sql="select * from " &xibie
51 rs.open sql,conn,1,3
52 do while not rs.eof