I have a bit of a problem and I cannot for the life of me come up with something.
Here is the problem...
I have a table with 3 columns:
ID, catID, artID
I have this table because an artID, could have many catID's, and a catID can have many artID's
Now when im getting this info to list on a page, i want to grab all of the artID's , now there could be many artID's that are the same number, that just have different catID's. How do i filter out so i only get each unique artID.
Here is an example if i totally wrote this horrible:
ID - catID - artID
1 - 1 - 1
2 - 2 - 1
3 - 1 - 2
4 - 2 - 2
when i select all the art id's im going to get:
1
1
2
2
instead of just
1
2
Any ideas?