♣
跪求各位大虾,初学者问题
<%
lhb_title=request("lhb_title")
lhb_fw_date=request("lhb_fw_date")
set rs=server.createobject("adodb.recordset")
conn = "dbq=" + server.mappath("lhb_soubu.asp") + ";defaultdir=;driver={microsoft access driver (*.mdb)};"
if request("lhb_title")<>"" then
sql="select * from lhb_wjxt where lhb_title like%" & lhb_title &"% and lhb_fw_date like%" & lhb_fw_date &"%"
else
sql="select top 1 * from lhb_wjxt"
end if
rs.open sql,conn,1,1
totalput=rs.recordcount
if rs.eof and rs.bof then
response.write "未找到你要查询的文件~~~~~~~~~~"
else
%>
我要检索表"lhb_wjxt"的“lhb_title”、“lhb_fw_date”两个字段,请问上面的语句错在哪里,谢谢!
· 网友精彩回答:
- 更多问题:
- · e.handled=true 什么意思?什么时候用?
- · 大家来看看,顶者有分!菜鸟问题,db2建立调度作业出错,help
- · 机器重起的问题!!高手来看看,是病毒引起的吗??
- · 从一个表中查出一个字段插入另外一个表中的问题!!!!!
- · 初学jsp
- · Weblogic服务器,后台经常报IOException,求助
- · 关于如何启动 enable java 的问题?哪位大哥帮忙一下,谢谢!!!
- · 在Web页面上我通过<iframe></iframe> 将一个文件服务的目录
- · 有谁用过ireport ?帮看看这个问题.
- · 怎样才能知道系统是在锁定状态和由锁定状态登录回到一般状态??谢谢!
- · 谁知道那个IT公司红黑榜的网址是多少???
- · 后台经常报IOException,求助
- · 早上为了上班不迟到,把脚扭伤了.... :-( :-(
- · 如何将string的字符串存到byte中?
- · 请问一个CPrintDialog打印问题?
- · 我的DataGrid怎么在多出来了一个空白的第一列??

