If InStr(ck,",") > 0 Then
set rs2=conn.execute("select * from [order] where id in (" & ck & ")")
Else
set rs2=conn.execute("select * from [order] where id = " & ck)
End If
Else
Response.Write "没有选择"
Response.End
End If
------解决方案--------------------
还说你会asp
你说这话就知道你不会
set rs2=conn.execute("select * from [order] where id in ("& ck &")")
用这个是没问题的,关键出现语法错误,ID=1,2,3你怎么能用等号?
再说如果这种你是在不会,你就用
dim rs2,ck
ck=request("checkbox")
if ck<>"" then
arr=split(ck,",")
for i=0 to UBound(ary)
set rs2=conn.execute("select * from [order] where id in ("&arr(i)&")")
next
这样就可以了