!!!十万火急!!!!

jhlgxyxl 2004-01-08 03:13:09
...
set rs=server.createobject("adodb.recordset")
if request("typeid")="" then
sql="select * from book where title="&bookname2&" order by id desc"
else
sql="select * from book where title="&bookname2&" and typeid="&y&" order by id desc"
end if
rs.open sql,conn,1,1
...
---------------------------------
上面的这一段程序,bookname2和typeid等传递都没有问题,它提示出错信息是:
ODBC 驱动程序不支持所需的属性。
怎么会这样呢?
...全文
39 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
jhlgxyxl 2004-01-08
  • 打赏
  • 举报
回复
ok!!!谢谢!!!!!
zorou_fatal 2004-01-08
  • 打赏
  • 举报
回复
sql="select * from book where title="&bookname2&" and typeid="&y&" order by id desc"

try

sql="select * from book where title='"&bookname2&"' and typeid="&y&" order by id desc"

28,407

社区成员

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

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