I'm generating my check boxes from this code. But, I'm having difficulty with making it generate by 5 outputs then once the 5th output is displayed it should skip to the next line. Would appreciate any help.
<?php
$result=mysql_query("SELECT * FROM tbl_tourism_type order by type_name ");
while($row = mysql_fetch_array($result))
echo '<input type="checkbox" name="type" value='.$row['type_id'].'>'
.'<label>'.$row['type_name']. '</label>'.'<br>'.'<br>';
?>
if (@++$i == 5) continue;