RE: [PHP] I'm having a blond moment with a while loop???

2005-05-09 Thread Mark Rees
-Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: 08 May 2005 11:56 To: php-general@lists.php.net Subject: [PHP] I'm having a blond moment with a while loop??? Hi guys, I'm doing something dumb but I can't see it. The basic premise is: sql search of orders sort

RE: [PHP] I'm having a blond moment with a while loop???

2005-05-08 Thread George Pitcher
Andy, and the others who have kindly responded, I managed to get this sorted. Ta George > -Original Message- > From: Andy Pieters [mailto:[EMAIL PROTECTED] > Sent: 8 May 2005 3:26 pm > To: php-general@lists.php.net > Subject: Re: [PHP] I'm having a blond mome

Re: [PHP] I'm having a blond moment with a while loop???

2005-05-08 Thread disguised.jedi
On 5/8/05, George Pitcher <[EMAIL PROTECTED]> wrote: > Hi guys, > > I'm doing something dumb but I can't see it. > > The basic premise is: > > sql search of orders sorted by customer > set g_customer_id to '' > loop through resultset > if customer_id not same as last record's customer_id (g_cu

Re: [PHP] I'm having a blond moment with a while loop???

2005-05-08 Thread Andy Pieters
On Sunday 08 May 2005 12:55, George Pitcher wrote: > Hi guys, > > I'm doing something dumb but I can't see it. > Actually you are doing many dumb things ;-) Please post your real code instead of pseudo. Then we'll have a look. And if possible append a "describe table" so we can see how your tab

Re: [PHP] I'm having a blond moment with a while loop???

2005-05-08 Thread Marek Kilimajer
George Pitcher wrote: Hi guys, I'm doing something dumb but I can't see it. The basic premise is: sql search of orders sorted by customer set g_customer_id to '' loop through resultset if customer_id not same as last record's customer_id (g_customer_id) get customer email details set up m