Si ecco, io ho fatto questa sintassi:
codice:
PageName = Request.ServerVariables("PATH_INFO")
SearchMethod = Request.ServerVariables("REQUEST_METHOD")
search1=Cstr(Request.form("search"))
search=replace(replace(trim(search1),"'",""),"""","")
table1=Cstr(Request.form("tabella"))
table=replace(replace(trim(table1),"'",""),"""","")
page = 1
respage = 10
If (len(search) = 0 or (table = "nosel") Then
response.write "inserire il criterio di ricerca"
end if
if len(search) > 0 then
sql = "select * from " & table & " where"
ArrSearch = Split(search)
x = 0
for each Word In ArrSearch
If Not x = UBound(ArrSearch) Then
sql = sql & " keywords like '%" & word & "%' and"
Else
sql = sql & " keywords like '%" & word & "%'"
End If
x = x + 1
Next
set rs = server.createobject("adodb.recordset")
rs.CursorLocation = 3
rs.CacheSize = 10
rs.open sql, conn, 1, 3
if rs.eof then
response.write "la tua ricerca non ha prodotto nessun risultato"
end if
if not rs.eof then
response.write "'"& =Replace(rs("titolo"),vbCrLf,"
")%> &"'"
rs.movenext
end if
next
end if
rs.close
set rs = nothing
conn.close
set conn = nothing
Praticamente la mia esigenza è quella di effettuare sempre all'interno dello stesso campo un valore ma da diverse tabelle ... come renderla funzionante?