作者ryan19870317 (Ryan)
看板Web_Design
标题[问题] asp资料读取後的显示问题
时间Tue Dec 25 18:31:31 2007
我是用asp读取access的资料
然後我用text输入的文字当作关键字的搜索 text的name=t1
<% text=Request("t1")
set ReadData = server.createobject("adodb.recordset")
If ReadData Is Nothing Then
Response.Write "GetMdbRecordset 呼叫失败!"
Response.End
End If
sql="select Content from Bookinfo where Title like '%"&text&"%' "
set ReadData = dbcn.execute(sql)
response.Write ReadData("Content")
ReadData.movenext
这样写似乎一开始没有按送出都会显示出第一笔资料
我该怎麽写才会按送出才显示资料呢???
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.126.58.103
1F:推 terrybob:if text<>"" then .... 12/25 20:12