不懂求教!!
我将前一网页中复选框的值在这一页中跟数据库中的数据对比,代码如下:
sql="select * from multichoice where id="& clng(id)
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
if instr(rs("answer"),result)<>0 then
multichoice=multichoice+cint(multiper)/4
j=j+1
answer=split(rs("answer"),",")
answercount=ubound(answer)+1
if answercount=j then
multichoice=multichoice+cint(multiper)*(1-j/4)
end if
else
multichoice=multichoice-cint(multiper)/4*(j)
end if
不知为什么老是提示以外错误, if instr(rs("answer"),result)<>0 then这一句有问题,实在搞不懂。肯请大家帮忙!!数据库中answer为字符型,用,隔开