The simple way to implement asp search for more than two words is to use split. For other information, you can refer to the previously updated articles on this site. Suppose you enter in the search box search: asp programming
First get the content in the input box: search=request(search)
Then take out these two values separately
s=split(search, )
'Construct sql function
sql=select * from news
for i=0 to ubound(s)
m=m& or />next
'Here you will find that there is an extra or in front of the m obtained, so it needs to be removed.
m=right(m,len(m)-3)
'Connect m to the sql statement
sql=sql& &m
'Using sql statement
rs.open sql,conn,1,1
'Then display the results of the query