Re: [PHP] Nestled 'while's or 'for's or 'foreach's -- I'm lost

2003-08-17 Thread David Otton
On Sun, 17 Aug 2003 15:47:04 -0400, you wrote: >I'm trying to take a paged result set and divide it into two chunks for >displaying on the page. Basically making something that looks like a typical >thumbnail gallery. I'm limiting my result set to 6 records and want to >display it as 2 rows of 3 c

RE: [PHP] Nestled 'while's or 'for's or 'foreach's -- I'm lost

2003-08-17 Thread Petre Agenbag
OK, Difficult to see from your pseudo code EXACTLY what it is that you want to do, but I'll take a stab anyway... Firstly, instead of using your elaborate ways of running through the result set and extracting the variables, use something like this: $sql = "whatever"; $result = mysql_query($sql);

Re: [PHP] Nestled 'while's or 'for's or 'foreach's -- I'm lost

2003-08-17 Thread Curt Zirzow
* Thus wrote Verdon vaillancourt ([EMAIL PROTECTED]): > Hi, somewhat newbie warning :) > > I'm trying to take a paged result set and divide it into two chunks for > displaying on the page. Basically making something that looks like a typical > thumbnail gallery. I'm limiting my result set to 6 rec

Re: [PHP] Nestled 'while's or 'for's or 'foreach's -- I'm lost

2003-08-21 Thread Verdon vaillancourt
On Sun, 17 Aug 2003 15:47:04 -0400, I wrote: >> I'm trying to take a paged result set and divide it into two chunks for >> displaying on the page. Basically making something that looks like a typical >> thumbnail gallery... ...I've include a rather lengthy bit of pseudo code that >> represents bas