Thread: [SOLVED] Condictional Loop
View Single Post
  #2 (permalink)  
Old 11-06-09, 11:38 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
There are various ways to solve this kind of problem. You can create parent-child relationships between the elements or use a hierarchical 'tree' to organize the elements, then display them based on the parent-child relationship or their depth in the tree.

You could also solve it programmatically by storing the current "master" header value and checking to see when it changes as you loop through the values> When it does, you then fetch the next header value and continue.

Without knowing a little more about what your intent or goal is, it's difficult to get more specific.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote