function save(){
$.ajax({
method: "POST",
url: url,
dataType: dataType
}).done(function(answer){
});
}
$stateCheckbox = $_POST['stamp'];
$sql = $Database->query("UPDATE izgotoviteli SET stamp = $stateCheckbox");
<td><label check></label><input type="checkbox" name="stamp[]" value="<?=$row['stamp']?>" <? if($row['stamp'] == 1)echo $check ?> onclick="save()" ></td>