[eluser]obiron2[/eluser]
you want to end up with a data set that looks like this:
$animals = array('dogs' => array('rover','gnasher'),'cats'=> array('kitty','fluffy','max'))
in your view you can then nest the loops
Code:
foreach ($animals as $animaltype => $animalnames)
{
print "$animaltype<BR>";
foreach ($animalnames as $animalname)
{
print " - $animalname<BR>";
}
print "<BR>";
}
how you get the data into that format is up to you.
obiron