Create a distinct array of just categories.

Then loop through the new distinct array, and on each iteration, filter the original array, for this category, and loop through the new array with just those subjects, so a loop within a loop.

-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Oct 11, 2006, at 11:56 AM, WebDude wrote:

 
Sorry if this seems so elementary...
 
I have a table that lists categories and subjects - ie...
 
category1    subject1
category1    subject2   
category1    subject3
category2    subject4
category2    subject5   
category2    subject6
category3    subject7
category3    subject8   
category3    subject9
 
How do I display...
 
category1   
    subject1
    subject2   
    subject3
 
category2   
    subject4
    subject5   
    subject6
 
category3   
    subject7
    subject8   
    subject9
 
 
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to