I have checkbox inside looping like this.
<?php
for($i=0;$i<$jumlah;$i++) {
echo "<tr>
<td align='center'><input type='text' name='PROSES[]' placeholder='Input Proses $i'/></td>
<td align='center'><input type='checkbox' name='NOTIF[]' value='Yes'/></td>
<td align='center'> <input type='checkbox' name='REMINDER[]' value='Yes'/></td>
<td align='center'> <input type='checkbox' name='DECISION[]' value='Yes'/></td>
<td align='center'> <input type='checkbox' name='AUTHOR[]' value='Yes'/></td>
<td align='center'><input type='text' name='SIAPA[]' size='40' placeholder='dari siap ke siapa' /></td>
</tr>";
}//end for
echo "</table>";
?>
and the query to input like this
if(isset($_POST['SUBMIT'])) {
$proses = $_POST[PROSES];//value from selectbox
$jumlah = count($proses);
$max_id = $data_max_id[ID];
for($i=0;$i<$jumlah;$i++) {
$query_input = "INSERT INTO data_proses SET ID_input = '$max_id',
proses = '$proses[$i]',
notifikasi = '$notif[$i]',
reminder = '$reminder[$i]',
decision = '$decision[$i]',
authorization = '$author[$i]',
dari_siapa = '$siapa[$i]'";
$hasil_input = mysqli_query($mysqli, $query_input);
}//end for
}
it will Produce table like this

In Short,
After I have submit to mysql is successfull But stil wrong. IF I have Check like that image the database have wrong result like this

input :
[x][x][ ][ ]
[ ][x][x][ ]
[ ][ ][x][x]
On database :
[x][x][x][x]
[ ][x][x][ ]
[ ][ ][ ][ ]
Can anyone help to fix my problem?
Thanks in advance