Re: formatting output: grouping results with identical fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



--- "scott.marlowe" <scott.marlowe@xxxxxxx> wrote:
>
> What you can do is something like (this is pseudo
> code) before you start 
> your while loop:
> 
> $current_category = <category from first row>
> 
> then in your while loop, check to see if it's
> changed:
> 
> if ($current_category != $new_category){
>     print $new_category;
>     $current_category = $new_category;
> }
> 
> Get the idea? It works a charm for things like this.

Gotcha...nice to know I was on the right track. 
Thanks!

mol

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux