Hi peoples
I have the following query to return search results. How can i stop this from returning results containg words or phrases like
"Hi Team, please check latest news. Cheers Rach"
when i search for "test" and the search string is contained in the word "latest"
I just want to search for and return the whole words
Query is
<cfquery name="searchResults" datasource="#dsn#">
SELECT threadID, posttype, topic, topicID, postdate, username, threads.catID, posttext, categories.catID, category
FROM threads INNER JOIN categories
ON threads.catID=categories.catID
WHERE topic LIKE '%#form.subject#%' OR username LIKE '%#form.subject#%' OR posttext LIKE '%#form.subject#%'
</cfquery>