Ok. Then just to keep it simple, suppose I had a table like this:
region info
-------- ----
1 foo
3 foo
2 foo
1 foo
2 foo
2 foo
3 foo
...and wanted the output to simply list each of the region numbers, like this:
1
2
3
In other words, show each of the individual regions being used in that table.
I suppose the php code might try to be something like "for all like values, create one result." Or, "after each loop goes through all like values, create one output result." Elementary, I know, that's the best way I know how to explain it.