Need little PHP help
<p>I need little PHP help, here is a code which generate a product list:</p>

<pre><code>    &lt;table class="list"&gt;
        &lt;?php for ($i = 0; $i &lt; sizeof($products); $i = $i + 1) { ?&gt;

  &lt;tr&gt;
    &lt;?php for ($j = $i; $j &lt; ($i + 1); $j++) { ?&gt;
    &lt;td width="100%"&gt;&lt;?php if (isset($products[$j])) { ?&gt;
      &lt;a class="prod_snimka" href="&lt;?php echo $products[$j]['href']; ?&gt;"&gt;&lt;img width="200" src="&lt;?php echo $products[$j]['thumb']; ?&gt;" title="&lt;?php echo $products[$j]['name']; ?&gt;" alt="&lt;?php echo $products[$j]['name']; ?&gt;" /&gt;&lt;/a&gt;


      &lt;?php } ?&gt;&lt;/td&gt;
    &lt;?php } ?&gt;
  &lt;/tr&gt;
  &lt;?php } ?&gt;
&lt;/table&gt;   
</code></pre>

<p>Output: <a href="http://d.pr/PPVq+" rel="nofollow">http://d.pr/PPVq+</a>  </p>

<p>What I need to modify to produce output one TR and TD's inside, after 4 TD (products) make another TR. In one row I want 4 TD, in that case too, if there is only 3 product then the last one will be an empty TD. Huhh.. It is possible? </p>

<p>Thanks</p>
