title: How to give two condition in foreach
body: <p>I have two condition to insert value in db but it overwrite the condition.  </p>
  
  <pre><code>&lt;?
    foreach($_POST['check'] as $value )
    foreach($_POST['check2'] as $value2)      
    { 
    mysql_query("insert into tb_recived_jobs set job_id='$value'emp_id='$value2'");  
    }     
  ?&gt;
  </code></pre>
  
  <p>Thanks for great help</p>