title: PHP code for insert checkbox value into spesific column on mysql with select form
body: <p>I need help php code to identify my checkbox value insert in to some spesific coloumn, my form like this.</p>
  
  <pre><code>&lt;input type="checkbox" name="A" Value="Animal"&gt;Animal &lt;br/&gt;
  &lt;input type="checkbox" name="B" Value="Ball"&gt;Ball &lt;br/&gt;
  &lt;input type="checkbox" name="C" Value="Champ"&gt;Champ &lt;br/&gt;
  
  &lt;label for="select"&gt;Category&lt;/label&gt;
  &lt;select name="select" size="1"&gt;
  &lt;option value="Category 1"&gt;Category 1&lt;/option&gt;
  &lt;option value="Category 2"&gt;Category 2&lt;/option&gt;
  &lt;option value="Category 3"&gt;Category 3&lt;/option&gt;
  &lt;/select&gt;
  &lt;br/&gt;
  &lt;input type="submit" name="Submit" value="Submit"&gt;
  </code></pre>
  
  <p>i need if select category 1 and make submit the checkbox value will insert in to table column "cat1" and i select category 2 and make submit the checkbox value will insert in to table column "cat2".
  table = id, cat1, cat2, cat3</p>