title: Append part of PHP while loop to a div
body: <p>Assume I have this simple PHP MYSQL while loop:</p>
  
  <pre><code>&lt;?php
  while($row = $STH-&gt;fetch())
  {
  echo '&lt;div id="$row['id']"&gt;$row['content']&lt;/div&gt;';
  
  echo '&lt;div id="comment-holder"&gt;;
  echo '&lt;div id="$row['id2']"&gt;$row['content2']&lt;/div&gt;'; 
  echo '&lt;/div&gt;';   
  
  echo '&lt;div id="$row['id3']"&gt;$row['content3']&lt;/div&gt;';  
  
  ?&gt;
  </code></pre>
  
  <p>How to make the <code>comment-holder</code> DIV act like a holder? meaning that it should be echoed only once and content of <code>$row[id2]</code> a <code>$row[content2]</code> should be appended to it to appear like this:</p>
  
  <pre><code> &lt;div id="comment-holder"&gt;
   &lt;div id="1"&gt;test&lt;/div&gt; 
   &lt;div id="2"&gt;different&lt;/div&gt;
   &lt;div id="3"&gt;text&lt;/div&gt;  
   &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in advance</p>