I hope I can make it clear here.
I have a tableA
id foo bar
1 This is white This is black
And I have another tableB, which foobar is a boolean. 1 for foo, 0 for bar in tableA
id foobar
1 1
Then how can I link to the tableA foo and bar columns when I query tableB foobar column to list out which data 1 is belongs to?
This is can be done in mysql or php?