Forum Moderators: coopster
Good PHP solutions to small problems [webmasterworld.com]
The 4th tip down describes how to Create a Dynamic Table from mysql result
The HTML should be just:
<div class="grid">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</grid>
You will get the result you need from that.
If you wanted to change to three columns:
.grid div {width:32.5%;float:left;display:block;}
Or to four columns:
.grid div {width:24.6%;float:left;display:block;}