Jump to content

Group by with multiple results


t_machine

Recommended Posts

hi, how would I group in a table but display the rest of the result for each.

example:

username  |  groupmembership

sam          |        2
jessica      |        5
sam          |        7
paul          |        5


how can i group username but display all the groupmembership that they are in? As you can see "sam" is in the table twice but in two different groupmembership.

Thanks :)
Link to comment
https://forums.phpfreaks.com/topic/26073-group-by-with-multiple-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.