iterate a html table of two row and 3 column using one php query
问题 I have a database table and that table has 6 rows. What I want is to display that 6 rows in a html page using a 3 column and 2 row table. I know how to work with php arrays and while loops. My problem is how to limit the array to put 3 items in the first row and put the other 3 in the next row. this is what i have tried but didn't work <div id="maincontent"> <!-- class one --> <?php $getSection = getSection(); $i=0; while($allSection = mysql_fetch_array($getSection)){ ?> <div class="subconent