title: php loop for a amount of times
body: <p>I need to loop a html code with php so it will display a list if messages results if it is possible? </p>
  
  <p>I found this code on google? i couldnt understand it:</p>
  
  <pre><code>      $brush_price = 5; 
  
      echo "&lt;table border=\"1\" align=\"center\"&gt;";
      echo "&lt;tr&gt;&lt;th&gt;Quantity&lt;/th&gt;";
      echo "&lt;th&gt;Price&lt;/th&gt;&lt;/tr&gt;";
      for ( $counter = 10; $counter &lt;= 100; $counter += 10) {
          echo "&lt;tr&gt;&lt;td&gt;";
          echo $counter;
          echo "&lt;/td&gt;&lt;td&gt;";
          echo $brush_price * $counter;
          echo "&lt;/td&gt;&lt;/tr&gt;";
      echo "&lt;/table&gt;";
  
  }
  </code></pre>
  
  <p>I just need it to duplicate a div which is  </p>
  
  <pre><code>&lt;div class="news" align="center" style="width:900px;height:65px;background-color:#C8C8C8"&gt;
  &lt;h3&gt; From: ..... &lt;/h3&gt;&lt;/br&gt;
  &lt;p1&gt; Message: Thank you for registering... &lt;/p1&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and i need to loop it for home much messages he has </p>