I tried the EXPORT_SET, and that does not seem to do what I want, at least not as far as I can tell. I Forgot to mention that in the previous post's. Honestly, I do not understand export_set, but it does not seem to do what I want.
If export_set would even return a string of all unique GROUPS that would be fine and then I would allow PHP break the groups up into array based on the delimeter. I just need to get the groups though.
Some of you prob. think I am being hard headed because I already have written a solution to the prob which works for the most part but is not the most efficient method (see prev post). It would seem mysql should be able to accomplish this since it supports sets through functions.
Clearer Example of What I am Tryingto Do
Example DBASE
| FILENAME | GROUP |
| frank.jpg | web,internal,personal |
| header.gif | web,news,public |
Now, I want MYSQL to export the GROUPS individualy and uniquely so I recieve a result like this
web,
internal
personal
news
public
Notice: Web displayed once. Now a person could pick a group name and display relevent rows which contain the group. I cannot use the SET field because I am allowing people to add groups at will so the field is a VARCHAR.
When someone wants to add a new file they can choose from a list of groups that other people have created or create new ones as well.