i'm trying to have a query result displayed in like groups...for example, if i wanted to show a grouping of colors, and whos favorite color each color was...it would look like this:
Blue
1. Bob
2. Sam
Green
1. Mike
2. James
etc...
i come from a CFM background, and it was easy to do (i'll use the syntax for anyone with CF experience that can help)..
<cfoutput query=name group=color>
#color#
<cfoutput>
#name.currentrow#. #first_name#<br>
</cfoutput>
</cfoutput>
now using what i know of php, all i can do is this:
1. Bob - Blue
2. Sam - Blue
3. Mike - Green
4. James - Green
any light you can shed on this would be much appreciated =)