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="searchRes ults" datasource="#ds n#">
SELECT threadID, posttype, topic, topicID, postdate, username, threads.catID, posttext, categories.catI D, category
FROM threads INNER JOIN categories
ON threads.catID=c ategories.catID
WHERE topic LIKE '%#form.subject #%' OR username LIKE '%#form.subject #%' OR posttext LIKE '%#form.subject #%'
</cfquery>
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="searchRes ults" datasource="#ds n#">
SELECT threadID, posttype, topic, topicID, postdate, username, threads.catID, posttext, categories.catI D, category
FROM threads INNER JOIN categories
ON threads.catID=c ategories.catID
WHERE topic LIKE '%#form.subject #%' OR username LIKE '%#form.subject #%' OR posttext LIKE '%#form.subject #%'
</cfquery>
Comment