I have a MySQL table set up with the following fields (example):
ID
Organization_Name
Issue_Area
I want to list out the organization names so that these show under the issue area that the organization manages. Using a simple call to the database and a while loop and then echo-ing the data to the screen, I can get the data to show up like so (example data):
ISSUE AREA: ORG NAME
Demilitarization: No More War, Inc.
Housing: Habitat for Humanity
Housing: The Home Coalition
Hunger: Kansas City Food Bank
Hunger: Wisconsin Food Pantry
What I want to do is show the data like so:
Demilitarization:
* No More War, Inc.
Housing:
Habitat for Humanity
The Home Coalition
Hunger:
Kansas City Food Bank
Wisconsin Food Pantry
Is this a good place to use a FOR loop? How would I set it up? Any help is MUCH APPRECIATED!