$price = $dbh->prepare('SELECT * FROM `price`');
$price->execute(array());
$maxcount = 3
$count = 0
while ($p = $price->fetch(PDO::FETCH_LAZY))
{ $count = $count + 1;
?>
<div>
<? echo $p['name']; ?>. <? echo $p['name']; ?>
</div>
<?php
if ($count >= $maxcount) {
$count = 0;
?><br /><?
}
}