View Single Post
  #4 (permalink)  
Old 12-09-04
Retail-Therapy's Avatar
Retail-Therapy Retail-Therapy is offline
Can't Touch This
 
Join Date: May 2004
Location: КРОМИДОВО
Posts: 321
Thanks: 3
Thanked 0 Times in 0 Posts
Retail-Therapy is an unknown quantity at this point
The Query:

SELECT * FROM sendto WHERE description LIKE '%%%s%%'

To run it as a fulltext query, you need to replace that SELECT statement with this one:

SELECT *, MATCH(description) AGAINST ('SEARCHVARIABLE') AS score FROM sendto where MATCH(description) AGAINST ('SEARCHVARIABLE') group by score desc

SEARCHVARIABLE = Whatever you want it to, a word, or a passed variable.

Tony

Dreamweaver is the sharpest tool in my box!
Reply With Quote
Sponsored Links