这个查询语句有什么问题??

Oer 2003-08-21 10:18:36
<form method="post" action="sg1hbCX.asp" name="CXsg1hb" >
供货单位:<input type="text" name="ghdw" size=10>
<input type="submit" name="find" value="查询">
</form>
以下是sg1hbCX.asp
if request("find")<> Empty then
strghdw=trim(request("ghdw"))
end if
strSQL=" select gbsj,ghdw from tab_jlqcb where 1=1"
if len(strghdw)<>0 then
sqlghdw=" and ghdw = ' " & strghdw & " ' "
strSQL=strSQL +SQLghdw
else
strsql=strsql
end if

再问一个问题:
我在E:\sgdzwl\adoconn.asp(这是一个连接后台)
  E:\sgdzwl\sgdzwl\sg1hb.asp
在sg1hb.asp中怎么调用adoconn.asp

我在sg1hb.asp中这样写
<!-- #include file="adoConn.asp" -->
不行,那怎么写??
...全文
35 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Oer 2003-08-21
  • 打赏
  • 举报
回复
查询语句,不行,都查询不到结果??
pp4u 2003-08-21
  • 打赏
  • 举报
回复
改为if request("find")="查询" then
<!-- #include virtual="adoConn.asp" -->
Brookes 2003-08-21
  • 打赏
  • 举报
回复
<!-- #include file="../adoConn.asp" -->

28,390

社区成员

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

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