I have a number of checkboxes for items to select, which have been returned in a query from the database. These checkboxes indicate different catagories, and each time a new catagory is added another checkbox will appear in the area. The problem is that once I start adding catagories, these checkboxes are not going to be aligned in the code below. What I am stuck on is maybe aligning the code so that only 5 checkboxes appear on each line with the catagory and count !! How would I align the code to do the above ???
<?php do { ?>
<span class="style7">
<input name="cat[]" type="checkbox" id="cat[]" value="<?php echo $row_search['catagory'] ?>"<?php if (!(strcmp($row_search['catagory'],"yes"))){echo "checked";}?>>
<span class="style10"><?php echo $row_search['catagory']; ?></span> (<span class="style9"><?php echo $row_search['count']; ?></span>) </span>
<?php } while ($row_search = mysql_fetch_assoc($search)); ?>