Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone give me a simple code of running program that provide a multiwords search function?

for example:
user input 3 words in one text field: "people" , "animal", and "earth".
I want to output all the search contains this 3 words but not according to the exact match rules.

for example it will output the full sentence like: "people living in earth, so do animal"
I am talking here according to search in database information.

All the help much appreciated
Posted
Updated 24-Mar-11 19:51pm
v3
Comments
Peter_in_2780 24-Mar-11 21:06pm    
Have you looked at regular expressions? That is how I would approach your problem. You can make as simple or complex search as you want.

1 solution

 
Share this answer
 
Comments
Peter_in_2780 24-Mar-11 21:04pm    
Your first link is useless. What do MSSQL Management Studio and PHP have in common?
luisnike19 24-Mar-11 22:24pm    
Peter, That's why I share three links. If you don't want to see it, just don't read my answer.
silverantes 24-Mar-11 23:07pm    
chill guys, btw luisnike thx for d info, but is there any search that link with database and in the rule that i wanted? any suggestion?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900