I need some help with a problem ... if you know of an existing thread, here or else where, I would appreciate if you passed it on to me:
I have a large database on our web ( that I need to change/modify.
The Search page currently allows the user to search the database for a keyword or phrase.
However, the users now want to be able to enter several words, and have the option to search:
1) For the exact string ... no problem here
2) For All of the words (AND)
3) For At least One of the words (OR)
My problem is trying to create an If Then ..ElseIf ... End if
that can test the input.
I thought about having 3 inputs, for example:
Find the Exact string: <input type=text name=findEXACT>
Find Any of the words: <input type=text name=findALL>
Find at Least One Word: <input type=text name=findOR
I know how to use the split() function to break their inputs into individual words to use in SQL, but How Do I Make It Dynamic ... regardless of how long a string they might type in? And then, how do I make the SQL to open the database dynamic, regardless of how many words they type?
Thank you in advance,
Chalmers
I have a large database on our web ( that I need to change/modify.
The Search page currently allows the user to search the database for a keyword or phrase.
However, the users now want to be able to enter several words, and have the option to search:
1) For the exact string ... no problem here
2) For All of the words (AND)
3) For At least One of the words (OR)
My problem is trying to create an If Then ..ElseIf ... End if
that can test the input.
I thought about having 3 inputs, for example:
Find the Exact string: <input type=text name=findEXACT>
Find Any of the words: <input type=text name=findALL>
Find at Least One Word: <input type=text name=findOR
I know how to use the split() function to break their inputs into individual words to use in SQL, but How Do I Make It Dynamic ... regardless of how long a string they might type in? And then, how do I make the SQL to open the database dynamic, regardless of how many words they type?
Thank you in advance,
Chalmers