Re: [PHP] confused about logic

2004-03-19 Thread Chris Boget
> Thanks for the time John. > Chris's did the trick. I'll keep yours on hand in case I do happen to > run into problems. > I DO appreciate your help. John's solution is actually technically better than mine in that it's only using one function call ("str_replace()") and as such only one possible p

RE: [PHP] confused about logic

2004-03-19 Thread Aaron Wolski
> To: Aaron Wolski; [EMAIL PROTECTED] > Subject: Re: [PHP] confused about logic > > From: "Aaron Wolski" <[EMAIL PROTECTED]> > > > I have input for where users can enter order numbers in which to search > > the database to find results matching their

RE: [PHP] confused about logic

2004-03-19 Thread Aaron Wolski
Chris! Thanks so much. This worked perfectly Aaron > -Original Message- > From: Chris Boget [mailto:[EMAIL PROTECTED] > Sent: March 19, 2004 10:59 AM > To: Aaron Wolski; [EMAIL PROTECTED] > Subject: Re: [PHP] confused about logic > > > To enter multiple orde

Re: [PHP] confused about logic

2004-03-19 Thread John W. Holmes
From: "Aaron Wolski" <[EMAIL PROTECTED]> > I have input for where users can enter order numbers in which to search > the database to find results matching their entry. > > To enter multiple order numbers they can comma separate like: > 1,34,21,34,54 > > What I need to do is take those numbers

Re: [PHP] confused about logic

2004-03-19 Thread Chris Boget
> To enter multiple order numbers they can comma separate like: > 1,34,21,34,54 > What I need to do is take those numbers and make a query that would like > like: > (cart_id in('1','34','21','34','54') OR id in('1','34','21','34','54')) > ANY idea how I can accomplish this? $string = "'" . implode

Re: [PHP] confused about logic

2004-03-19 Thread David O'Brien
At 10:45 AM 3/19/2004, you wrote: Hi All, I have input for where users can enter order numbers in which to search the database to find results matching their entry. To enter multiple order numbers they can comma separate like: 1,34,21,34,54 Let's say you place these in the following variable $o

[PHP] confused about logic

2004-03-19 Thread Aaron Wolski
Hi All, I have input for where users can enter order numbers in which to search the database to find results matching their entry. To enter multiple order numbers they can comma separate like: 1,34,21,34,54 What I need to do is take those numbers and make a query that would like like: (cart