Hey Guys. New to PHPB. I'm setting a up a site to keep track of all past and present members of the chapter of the frat I am in. I have a column in my mysql DB called "class" to designate their pledge class. I want to set up a page that automatically creates a listing of each class's members without having to set up the categories themselves one by one.
So say I have three pledge classes, MT, BB, and RJH.
Say I have 3 people in each of those classes.
I want it to be displayed dynamically like this.
MT
person 1
person 2
person 3
BB
person 1
person 2
person 3
RJH
person 1
person 2
person 3
I want it to detect all the different classes in that column and arrange them like that. How do I do this in PHP? I know how to select all of members where their pledge class equals a specific name (SELECT class FROM roster WHERE class = "MT"), but how do i do it dynamically? PLEASE HELP THE N00B!