I have an input array checkbox with id values. (I'm not sure if the array is working)
<?php $resource=mysql_query("Select * from material_rec",$con); ?>
<?php while($result=mysql_fetch_array($resource))
{ ?>
<input type="checkbox" name="checkbox1" id="checkbox1[]" value="<?php echo $result['id']?>" />
<?php };?>
when i insert the value of my checked checkboxes. it only insert one value and doesn't insert my selected checkboxes.
How can i insert the array values from the selected checkboxes into one colum with comma separtor?