Hi all,
i have a search page (results are coming from ms database) and a result page,
lets say i want to search for the word "computer" if i enter any computer, or any letter less, it works fine, but if i enter computerS , doesn't return with any result, meaing that if i enter any character(s) extra doesnt' work , even if enter a space after the keyword,
i guess most user would enter 2 or more keyword, is there anyways i could make the query (or any IF statment) will look any words, not all ??
Thanks in advance,
here is my query statmement,
<!--- pulling my data --->
<cfquery name="qItems" dataSource="directory">
SELECT * FROM tblCategories, tblItems
WHERE tblCategories.CategoryID = tblItems.CategoryIDFK
<cfif BusinessDescription NEQ "">
and tblItems.BusinessDescription Like'%#FORM.BusinessDescription#%'
max
i have a search page (results are coming from ms database) and a result page,
lets say i want to search for the word "computer" if i enter any computer, or any letter less, it works fine, but if i enter computerS , doesn't return with any result, meaing that if i enter any character(s) extra doesnt' work , even if enter a space after the keyword,
i guess most user would enter 2 or more keyword, is there anyways i could make the query (or any IF statment) will look any words, not all ??
Thanks in advance,
here is my query statmement,
<!--- pulling my data --->
<cfquery name="qItems" dataSource="directory">
SELECT * FROM tblCategories, tblItems
WHERE tblCategories.CategoryID = tblItems.CategoryIDFK
<cfif BusinessDescription NEQ "">
and tblItems.BusinessDescription Like'%#FORM.BusinessDescription#%'
max