Re: query for search on mysql database

2002-05-14 Thread MikeParton
of a > last > > name (even if all other fields are left blank) and return the records > > meeting the > criterion/criteria. > > > > Am I off my rocker? > > > > > > - Original Message - > > From: "Nick > Stuart" <[EMAIL PROTE

RE: query for search on mysql database

2002-05-14 Thread Roger Baklund
* MikeParton > I guess what might help is to explain that the form fields are on a page > with method="POST" action=results.php > The sql I provided originally is in results.php and I use the superglobal > $_POST to pull the variables from the form field. > > I want the query results to be based

Re: query for search on mysql database

2002-05-14 Thread MikeParton
L PROTECTED]> Sent: Tuesday, May 14, 2002 4:51 PM Subject: Re: query for search on mysql database > I think that was what roger is saying. If you simply change the OR's to > AND's your searchwill > work as you want it to. For example some one looks for a person by the > la

Re: query for search on mysql database

2002-05-14 Thread MikeParton
in. Need some pointers on how to start that. Thanks! Mike - Original Message - From: "Roger Baklund" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "MikeParton" <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 3:49 PM Subject: RE: query for search on

RE: query for search on mysql database

2002-05-14 Thread Roger Baklund
* MikeParton > I have a similar query in a PHP script. I want to allow users to > use fields > in a page to search for the records. BUT, I want them to be able to enter > the first few characters. I would think my query, below, would do it (the > entire search works when the WHERE statement has

Re: query for search on mysql database

2002-05-14 Thread MikeParton
<[EMAIL PROTECTED]> Cc: "Aman Raheja" <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 2:47 PM Subject: RE: query for search on mysql database > * Aman Raheja > > I am making a search program. I am looking for a query. > > I want to allow the

RE: query for search on mysql database

2002-05-14 Thread Roger Baklund
* Aman Raheja > I am making a search program. I am looking for a query. > I want to allow the user to search "Any" or "All". > Anyhow, suppose the database contains the following > > Author > > | Rim Torus | > | Jerry Pal Deprado | > | Roan P. Classy | > --