Displaying results in 4 columns

Hi everyone,

Would anyone know how I can display the results from this into 4 columns:(working from left to right until the results are shown)

<?php
$part = explode(" ",$checkedarray[0]);
while($row1=mysql_fetch_array($allcheckboxes))
{
$j++;
$chk=0;

if(!in_array(trim($row1[‘bvalue’]),$part))
{
?>

<td>
<?php

echo $row1['bvalue']." , ";

?></td>

Thanks a ton