i want to create looping data in 3 td table
i want looping like this image
This is my code
<table>
<tr>
<?php $sql="select * from study";
$rs=mysql_query($sql);
while($row1=mysql_fetch_array($rs)){ ?>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30%" align="left" valign="top"><input type="checkbox" name="minat" value="<?php echo $row1['studyid']; ?>" />
<?php echo $row1['studyname']; ?></td>
<td width="30%" align="left" valign="top"><input type="checkbox" name="minat" value="<?php echo $row1['studyid']; ?>" />
<?php echo $row1['studyname']; ?></td>
<td width="30%" align="left" valign="top"><input type="checkbox" name="minat" value="<?php echo $row1['studyid']; ?>" />
<?php echo $row1['studyname']; ?></td>
</tr>
<?php } ?>
</table>
Help Me Thank's you all