DynamicList with Multiple Columns
<p>This is my dynamicList (one of you helped me to create multiple columns in it.)
But I forgot that by creating multiple columns/rows inseide a table, if I have 20 items to be displayed, I have to wait until the whole table is ready, and I don't want that.</p>

<p>How can I fix it so it displays each row inside a new table?</p>

<pre><code>if ($productCount &gt; 0) {
        $i=0;
        $dynamicListBody = '&lt;table width: 90%; margin-right: auto; margin-left: auto; color: #00E6AA;&gt;';
        while($row = mysql_fetch_array($sql)){
            $id = $row["id"];
            $product_name = $row["product_name"];
            $details = $row["details"];
            $price = $row["price"];
            $date_added = strftime("%b %d, %Y", strtotime($row["date_added"]));
        $dynamicListBody .= ($i==0) ? '&lt;tr&gt;':'';
        $dynamicListBody .= '&lt;td width="10%"&gt;
                    &lt;img style="border:#666 1px solid;" src="../stock_photos/' . $id . '.png" height="80px" width="40px" alt="' . $product_name . '" /&gt;
                     &lt;/td&gt;
                     &lt;td width="35%"&gt;
                    &lt;span class=itmttl&gt;' . $product_name . '&lt;/span&gt;
                    &lt;br /&gt;
                    &lt;span class=text&gt;' . $details . '
                    &lt;br /&gt;
                    €' . $price . '&lt;/span&gt;
                    &lt;br /&gt;
                      &lt;form name="bd_itm" id="bd_itm" method="post" action="help_scripts/cart_functions.php"&gt;
                    &lt;input type="hidden" name="pid" id="pid" value="' . $id . '" /&gt;
                    &lt;input type="submit" name="button" id="button' . $id . '" value="Add to Cart" /&gt;
                    &lt;br /&gt;
                    &lt;br /&gt;
                      &lt;/form&gt;
                     &lt;/td&gt;';
        $dynamicListBody .= ($i==1) ? '&lt;/tr&gt;':'';
        $i++;
        ($i==2) ? $i=0:'';
        }
        $dynamicListBody .='&lt;/table&gt;';
        } else {
            $dynamicListBody = "We have no products listed in our store yet";
            }
        mysql_close();
</code></pre>
