Re: [PHP-DB] keyword searching

2003-11-12 Thread CPT John W. Holmes
From: "Adam Williams" <[EMAIL PROTECTED]> > This is my SQL query: > > "SELECT seriesno, governor, descr, boxno, year, eyear, docno > from rg2 WHERE seriesno = '$_POST[seriesno]' and governor matches > '*$searchterm*' or descr matches '*$searchterm*'"; Looks like you're doing the equivilent to a M

Re: [PHP-DB] keyword searching

2003-11-12 Thread Adam Williams
This is my SQL query: "SELECT seriesno, governor, descr, boxno, year, eyear, docno from rg2 WHERE seriesno = '$_POST[seriesno]' and governor matches '*$searchterm*' or descr matches '*$searchterm*'"; So as you can see, its gonna need some work to make it do fulltext searching of the descr field

RE: [PHP-DB] keyword searching

2003-11-12 Thread Robert Sossomon
Explode the kewords list. I have mine explode the keyword and search the description field. It CAN limit it by category AND/OR by Vendor. But this will do the trick without the limiters. $keyword = $_POST[keyword]; $keywords = explode(" ", $keyword); // so you can search for each word they enter

Re: [PHP-DB] keyword searching

2003-11-12 Thread CPT John W. Holmes
From: "Adam Williams" <[EMAIL PROTECTED]> > CPT John W. Holmes wrote: > > From: "Adam Williams" <[EMAIL PROTECTED]> > > > >>I am selecting a field in a database called description for keyword > >>searching. The field contains names of people, states, years, etc. When > >>someone searches for say "

Re: [PHP-DB] keyword searching

2003-11-12 Thread Adam Williams
I'm doing a fulltext search. CPT John W. Holmes wrote: From: "Adam Williams" <[EMAIL PROTECTED]> I am selecting a field in a database called description for keyword searching. The field contains names of people, states, years, etc. When someone searches for say "holmes north carolina" the quer

Re: [PHP-DB] keyword searching

2003-11-12 Thread CPT John W. Holmes
From: "Adam Williams" <[EMAIL PROTECTED]> > I am selecting a field in a database called description for keyword > searching. The field contains names of people, states, years, etc. When > someone searches for say "holmes north carolina" the query searches for > exactly that, fields which have "ho