title: How to insert to a database with foreach?
body: <p>Hi a have a small problem. I can't insert into db array... this is my code</p>
  
  <pre><code>$qurum1 = implode('|',$_POST['qurum1']);
  $qurum = explode('|', $qurum1);
  foreach ($qurum as $value) {
  $query2 = "INSERT INTO test (data_id, col2) VALUES ('$id', '$value')"; 
  }
  </code></pre>
  
  <p>This code inserts only last value</p>