title: How to insert multiple rows with PDO prepared statmenets based off of a SELECT query?
body: <p>I've found all of my employee ids (empid) who are in a specified group:</p>
  
  <pre><code>$groupid = $_GET['groupid'];
  $myquery=$con-&gt;prepare("SELECT e.id AS empid FROM employees e WHERE e.groupid=?");
  $myquery-&gt;execute([$groupid]);
  </code></pre>
  
  <p>I would now like to insert a new row into a different table for EACH employee ID (empid) i found above.</p>
  
  <p>Would anyone be able to explain this to me?</p>