title: php insert data into database with multiple ids at once?
body: <p>I have a form. Inside that a number of checkbox present. So when someone selects some checkboxes(lets say we have selected two checkboxes Disk Space, Processor) and clicks on save. Then it should save in the database like this</p>
  
  <pre><code>id  attribute_name
  1    Disk space
  2    Processor
  
  
  &lt;form id="formID" method="post" action="" enctype="multipart/form-data"&gt;
    &lt;input type="checkbox" name=""  value="Disk space"/&gt;Disk space&lt;br /&gt;
    &lt;input type="checkbox" name=""  value="Color"/&gt;Color&lt;br /&gt;
    &lt;input type="checkbox" name=""  value="Processor"/&gt;Processor&lt;br /&gt;
    &lt;input type="submit" name="save" id="save" value="save"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>So can someone tell me how to do this?
  I had made my insert query like this</p>
  
  <pre><code>INSERT INTO `ia_attributes`(`attribute_id`, `attribute_name`) VALUES ('', '".$attribute_values."')";
  </code></pre>
  
  <p>but this one entered all the selected attributes in a single column.</p>