作者ryan19870317 (Ryan)
看板Web_Design
標題[問題] sql語法讀取textbox裡的資料
時間Fri Dec 21 00:51:33 2007
<input type="text" name="T1" size="14">
text=Request.form("T1")
sql="select Content from Bookinfo where Title like '%<%=text>%'"
請問一下大大們:
現在的問題就在於我無法用text所打的字還做關鍵字搜尋
like '%_ _ _ _ %' 裡面我應該要怎麼輸入才能 抓text寫的字做關鍵字搜尋???
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.126.52.149
1F:→ gkkcat:like '% " & text & " %'"試看看? 12/21 02:19