不懂求教!!

noodle1130 2004-02-05 02:43:50
我将前一网页中复选框的值在这一页中跟数据库中的数据对比,代码如下:
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为字符型,用,隔开
...全文
59 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧