Possible Duplicate:
MySQL (or PHP?) group results by field data
Guys, I have a database (mysql) similar to this now:
ID meta_key meta_value name
1 _group 1 John
2 _group 1 Andrea
3 _group 1 Jack
4 _group 2 Mike
5 _group 2 Kurt
6 _group 3 Alice
and I need to sort / display it like this:
group name
-----------------------
1 John
Andrea
Jack
-----------------------
2 Mike
Kurt
-----------------------
3 Alice
-----------------------
I had a similar issue before, thanks for the previus help! But now i'm stucked with this.
I really appreciate your help.