I have a table that has a complete set of labels. I have another table that assigns some labels to some users. I want to create a list that prints the complete set of labels and then says whether it has been assigned to the user or not.
currently i do a sql statement to put table one contents into an array: $array[] and then try to select all from table 2, but i cant get the desired output that way ...
table one:
label 1
label 2
label 3
label 4
table two:
user1 | label 1
user2 | label 2
desired output:
label 1 | user1 | yes
label 2 | user1 | yes
label 3 | user1 | no
label 4 | user1 | no
any ideas?
thanks