FullText user interface with PHP

This is a discussion on FullText user interface with PHP within the PHP Language forums, part of the PHP Programming Forums category; Right now on a form I have the instructions below, the mysql FullText search works nicely when done manually w/...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-06-2004
leegold2
 
Posts: n/a
Default FullText user interface with PHP

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)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0