title: PHP/MySQL Implode into multiple rows?
body: <p>is it possible to implode a checkbox value into multiple values to insert into a database?</p>
  
  <p>At current I have this:</p>
  
  <pre><code>$tags = implode(', ', $_POST['checkboxname']);
  </code></pre>
  
  <p>This gives me the value of "testtag1, testtag2"</p>
  
  <p>How would I split this up so it would go into the database like:</p>
  
  <pre><code>Blog ID ¦ Tag
  ------------------
  1       ¦ testtag1
  
  1       ¦ testtag2
  </code></pre>
  
  <p>Not sure how to make the implode function seperate them as this:</p>
  
  <pre><code>$query2 = mysqli_query($myConnection, "INSERT INTO blogtags (blogid, tag) VALUES('$blogid','$tags')") or die (mysqli_error($myConnection));
  </code></pre>
  
  <p>just inserts the two values together in one row.</p>
  
  <p>Any help would be great!
  Thanks</p>