By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,721 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,721 IT Pros & Developers. It's quick & easy.

FullText user interface with PHP

P: n/a
Right now on a form I have the instructions below, the mysql FullText
search works nicely when done manually w/these instructions.

I'm thinking of replacing the text the user sees below with some
self-explainatory radio buttons. Can I just put (using PHP processing )
"+" in front of each word submitted in a search field by the user if
"all words"radio button is checked ?. Or if the radio button "phrase"
was checked, then simply put quotes around what the user submits? Is
there a better way? Snippet appreciated. Thanks.

FullText search instructions:
+ The word is mandatory in all rows returned.

- The word cannot appear in any row returned.

() Used to group words into subexpressions.

* The wildcard, indicating zero or more characters. It can only appear
at the end of a word.

" Anything enclosed in the double quotes is taken as a whole (so you
can match phrases, for example)
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.