The simplest way to do this is using CSS
create a parent div that is the full width you want to display, then repeat a child div that uses a multiple of the number of columns to display and foot left.
for example, the parent div could be 600px, and the child div 200px to create as 3 column table.
Here is a very simplistic example:
<style type="text/css">
.ItemContainer {
width:600px;
overflow:hidden;
}
.ItemInfo {
width:200px;
float:left;
}
</style>
<div class="ItemContainer">
<?php
while(!$rsItems->atEnd()) {
?>
<div class="ItemInfo">
<?php echo($rsItems->getColumnVal("ItemName")); ?><br><?php echo($rsItems->getColumnVal("ItemPrice")); ?>
</div>
<?php
$rsItems->moveNext();
}
$rsItems->moveFirst(); //return RS to first record
?>
</div>