how to update multiple update in database using checkbox with php mysql
<form action="enableprofile1.php" method="post">
//user id
<input type="hidden" name="id1[]" id="id1[]" value="<?php echo $sn; ?>" />
//user id
//enable checkbox
<input type="checkbox" name="enable[]" id="enable[]" value="1" <?php if($en=='1'){ echo 'checked';} ?> />
//enable checkbox
<input type="submit" name="save" value="Save" class="fontBold">
</form>