RE: [PHP] where match question

2007-01-24 Thread Richard Lynch
On Wed, January 24, 2007 12:53 am, Don wrote: > zips are fixed, but my clients have districts that I want to be > searched by > zip+4. Each client will have a different district with different zips > per > district. > They are to input the zips that are within their district when they > sign up, >

RE: [PHP] where match question

2007-01-24 Thread Richard Lynch
On Tue, January 23, 2007 11:49 pm, Don wrote: > I appreciate all the input. I would definitely like to use a separate > table > for the zips, but I cannot figure out how make the form that stores > them > user friendly each entry can have any number of zips - from many > to just > a few. > > Al

RE: [PHP] where match question

2007-01-24 Thread Németh Zoltán
On k, 2007-01-23 at 22:49 -0700, Don wrote: > On k, 2007-01-23 at 00:58 -0800, Jim Lucas wrote: > > Németh Zoltán wrote: > > > On k, 2007-01-23 at 19:46 +1100, chris smith wrote: > > >> On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > > >>> On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: >

RE: [PHP] where match question

2007-01-23 Thread Don
> I appreciate all the input. I would definitely like to use a separate table > for the zips, but I cannot figure out how make the form that stores them > user friendly each entry can have any number of zips - from many to just > a few. > > Also, the site is in development, so there is no ex

Re: [PHP] where match question

2007-01-23 Thread Chris
I appreciate all the input. I would definitely like to use a separate table for the zips, but I cannot figure out how make the form that stores them user friendly each entry can have any number of zips - from many to just a few. Also, the site is in development, so there is no existing data..

RE: [PHP] where match question

2007-01-23 Thread Don
On k, 2007-01-23 at 00:58 -0800, Jim Lucas wrote: > Németh Zoltán wrote: > > On k, 2007-01-23 at 19:46 +1100, chris smith wrote: > >> On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > >>> On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: > Don wrote: > > I have a db field that contain

Re: [PHP] where match question

2007-01-23 Thread chris smith
On 1/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Németh Zoltán wrote: > On k, 2007-01-23 at 19:46 +1100, chris smith wrote: >> On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: >>> On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: > I have a db field that contains zip codes

Re: [PHP] where match question

2007-01-23 Thread Németh Zoltán
On k, 2007-01-23 at 00:58 -0800, Jim Lucas wrote: > Németh Zoltán wrote: > > On k, 2007-01-23 at 19:46 +1100, chris smith wrote: > >> On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > >>> On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: > Don wrote: > > I have a db field that contain

Re: [PHP] where match question

2007-01-23 Thread Jim Lucas
Németh Zoltán wrote: On k, 2007-01-23 at 19:46 +1100, chris smith wrote: On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: Don wrote: I have a db field that contains zip codes separated by comas. I am trying to get php to return all of the

Re: [PHP] where match question

2007-01-23 Thread Németh Zoltán
On k, 2007-01-23 at 19:46 +1100, chris smith wrote: > On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > > On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: > > > Don wrote: > > > > I have a db field that contains zip codes separated by comas. > > > > > > > > I am trying to get php to return al

Re: [PHP] where match question

2007-01-23 Thread chris smith
On 1/23/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: > Don wrote: > > I have a db field that contains zip codes separated by comas. > > > > I am trying to get php to return all of the rows that contain a particular > > zip code. > > > > > > > > $q

Re: [PHP] where match question

2007-01-23 Thread Németh Zoltán
On h, 2007-01-22 at 22:53 -0800, Jim Lucas wrote: > Don wrote: > > I have a db field that contains zip codes separated by comas. > > > > I am trying to get php to return all of the rows that contain a particular > > zip code. > > > > > > > > $query = "SELECT * FROM info WHERE MATCH (partialZIP

Re: [PHP] where match question

2007-01-22 Thread Jim Lucas
Don wrote: I have a db field that contains zip codes separated by comas. I am trying to get php to return all of the rows that contain a particular zip code. $query = "SELECT * FROM info WHERE MATCH (partialZIP) AGAINST ('$zip')"; try this $query = "SELECT * FROM info WHERE column LIKE '

RE: [PHP] where match question

2007-01-22 Thread Don
Don wrote: > I have a db field that contains zip codes separated by comas. > > I am trying to get php to return all of the rows that contain a particular > zip code. > > > > $query = "SELECT * FROM info WHERE MATCH (partialZIP) AGAINST ('$zip')"; > > $result = mysql_query($query) > > or die

Re: [PHP] where match question

2007-01-22 Thread Chris
Don wrote: I appreciate your quick response, but I think the problem I'm having is in the query. Is WHERE MATCH () the proper format to use for getting multiple rows from the DB? Or is there something else I'm missing? Please don't top post, it's hard to follow what's going on and who's replie

RE: [PHP] where match question

2007-01-22 Thread Don
I appreciate your quick response, but I think the problem I'm having is in the query. Is WHERE MATCH () the proper format to use for getting multiple rows from the DB? Or is there something else I'm missing? Don wrote: > I have a db field that contains zip codes separated by comas. > > I am tryi

Re: [PHP] where match question

2007-01-22 Thread Chris
Don wrote: I have a db field that contains zip codes separated by comas. I am trying to get php to return all of the rows that contain a particular zip code. $query = "SELECT * FROM info WHERE MATCH (partialZIP) AGAINST ('$zip')"; $result = mysql_query($query) or die ("could not connect t