You are here: Re: Displaying Grouped Data « PHP Language « IT news, forums, messages
Re: Displaying Grouped Data

Posted by Usenet on 08/06/07 15:09

In article <ovsti.14471$6z6.7124@newsfe1-gui.ntli.net>, Simon Harris wrote:
> Can anyone give me any hints as to how I can display grouped data,

I'd write it in the loop.
You're (presumably) using a "foreach" or somesuch to loop through the rows
returned.
You just need to keep a note of the last distinct value displayed. If "this"
row has the same value in that column then don't display it.

It perhaps appears a bit tedious, but you're display criterion for this
column is "is it the same value as last time", so that's what you've got to
do, "remember" what happened last time.

Regards
Mark

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация