title: How to break line in a single row of <table>? <tr>
body: <p>I am creating a program in  which I am fetching data from database and showing it in a table. I don't know how much record will be fetch from the database, but I have to print 3 records in a single line, and next 3 in the another line. I have created the following program in the its printing all the records in the same line. I want it to limit this to 3 and after 3 records change line and print the next 3 record in the other line.   </p>
  
  <pre><code>&lt;body&gt;   
      &lt;table border="2px"&gt;
          &lt;tr&gt;
          &lt;?php
          for($i=0; $i&lt;=5; $i++)
          {
              echo "&lt;td&gt; $i &lt;/td&gt;";
              $i=$i++;
          }
          ?&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  </code></pre>