I have created a forum where you can ask questions to musicians. I have a form where you can select multiple checkboxes to what kind of musicians you want to talk to.
With the POST
data I did the following:
$result = implode(",",$_POST['sub']);
And insert it into the database table which look like this:
-------------------------------------------
| id | topicname | genre | Subgenre |
-------------------------------------------
| 1 | music | Metal | Heavy, Thrash |
-------------------------------------------
So what I want is only musicians that have signed up on the site with either heavy or Thrash can interact with this forum topic. I know how to check it normally if there was only 1 variable in the table but now there is two and I have no clue how to solve this problem.