I am trying to displayinformation from the database using checkboxes. I have found that if there is more than 5 or 6 results in the query the result displayed is slightly out of sink. What I want to do is to display 5 checkboxes per row. How can I change the code to display this.
<?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)); ?>
<br>
<br>
<input type="submit" name="Submit" value="Submit">
<br>
</form>[code=php]