I'm not sure if it's the most efficient way to do it but here's what i do (in pseudocode)
 
set local$header to "" (blank)
 
loop through the table and for each row:
{
 
  if column 1 is diferent than local$header
  {
    write out the header
    set local$header to column 1
  }
 
  write out column #2, indented
}
 
hope that helps!
Alan

 
On 10/11/06, WebDude <[EMAIL PROTECTED]> 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