为什么会出错!---急

blueoutlander 2003-12-16 09:16:54
cx=request.form("a")
b=request.form("b")

if cx="" and not(b="") then
exec="select * from user where name='1'"
end if
if cx="" and b="" then
exec="select * from user where name='2'"
end if
if not(cx="") and b="" then
exec="select * from user where name ='3'"
end if
if not(cx="") and not(b="") then ----每次我都输入的话就出错,其他的都好?
exec="select * from user" 为什么
end if
...全文
56 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
blueoutlander 2003-12-16
  • 打赏
  • 举报
回复
谢谢已经好了!
PPLUNCLE 2003-12-16
  • 打赏
  • 举报
回复
楼主具体什么错误啊
是脚本错误还是数据库错误啊!!!
PPLUNCLE 2003-12-16
  • 打赏
  • 举报
回复
if not(cx="") and not(b="") then ----每次我都输入的话就出错,其他的都好?
exec="select * from user" 为什么
end if
----------------------------------------------
if cx<>"" and b<>"" then ----每次我都输入的话就出错,其他的都好?
exec="select * from user" 为什么
end if
dafei0320 2003-12-16
  • 打赏
  • 举报
回复
exec="select * from [user]"
Try again
pimple 2003-12-16
  • 打赏
  • 举报
回复
你再贴些代码..

28,409

社区成员

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

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