I wish to separate the checkboxes into 2 rows, in which 1st row contains 1 to 8 and the second row contains 9 to 15.
How should i make the table tr and td?
Please help.Thanks in advanced.
[CODE]
<?
$aTypes = array(“1”, “2”,”3″,”4″,”5″,”6″,
“7”,”8″,”9″,”10″,”11″,”12″,”13″,”14″,
“15”);
//converting comma separated into array using explode function
$dbTypes= explode(‘,’,$row->types);
foreach ($aTypes as $types) {
if(in_array($types,$dbTypes)) {
echo “<tr><td><input name=”types[]” type=”checkbox” value=”$types” CHECKED> $types </td></tr>”;
} else
{
echo “<tr><td><input name=”types[]” type=”checkbox” value=”$types”> $types </td></tr>”;
}
}
?>