Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP search script

Status
Not open for further replies.

jimoblak

Instructor
Oct 23, 2001
3,620
US
I have constructed a very basic search function that can only handle one word or exact phrase searches with an SQL command like:

SELECT * FROM SiteDB WHERE (keywords LIKE '%$user-entered-word-or-phrase%')";

My next task is to allow advanced searches for non-adjacent words using the following input from the user:

"" //exact phrases
OR //either word
AND //both words
NOT //exclude word

Would anyone know of good resources for writing search scripts? Or would anyone have any samples?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top