Hello,
I have a probelm with a little php script I am trying to make...I have a table with "people" and each person has a "category". I simply want to make a list of categories, with each person who is in that category listed under it..
The code below does it "almost right"...it lists teh people under each category, but everytime it comes across a row with the same category it has already listed, it makes another list of people for the same category...(example output is listed below code....
Columnists
conservative <-- category
Joe Write
Herman the author
Liberal <-- category
Fred baylor
alice cooper
middle of the road<-- category
joe hanger
conservative <-- category (this is a repeated listing!!)
Joe Write
Herman the author
middle of the road
freddy
Green People<-- category
greg greener
mr green jeans
I have spent two days looking on mysql.com and a million tutorials, but since I do not even know the correct syntax for the needed code, it is hard to look it up......
Any help is appreciated...