Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更新及;使用php重新加载mysql-删除确认问题_Php - Fatal编程技术网

更新及;使用php重新加载mysql-删除确认问题

更新及;使用php重新加载mysql-删除确认问题,php,Php,当我提交它要求确认时,我试图删除代码位,但不起作用 我想提交,它的更新没有被要求 $('body').on("change",'.guests_left',function(){ var value = $(this).val(); var id = $(this).data("id"); var location = 'updateLeftGuests.php?sheet_id='+id+'&gue

当我提交它要求确认时,我试图删除代码位,但不起作用

我想提交,它的更新没有被要求

        $('body').on("change",'.guests_left',function(){
            var value = $(this).val();
            var id = $(this).data("id");
            var location = 'updateLeftGuests.php?sheet_id='+id+'&guests_left='+value;
            var txt;
            var r = confirm("This will change remaining guests, Are you sure?");

            if (r == true) {
                window.location.href = location;
            } else {
                location.reload();
            }

        });
    }
} );
</script>
$('body')。on(“change”,'guests_left',function(){
var值=$(this.val();
var id=$(this.data(“id”);
var location='updateLeftGuests.php?sheet_id='+id+'&guests_left='+value;
var-txt;
var r=确认(“这将改变剩余的客人,你确定吗?”);
如果(r==true){
window.location.href=位置;
}否则{
location.reload();
}
});
}
} );
改用这个:

$('body').on("change",'.guests_left',function(){
    var value = $(this).val();
    var id = $(this).data("id");
    var location = 'updateLeftGuests.php?sheet_id='+id+'&guests_left='+value;
    var txt;
    window.location.href = location;
});

所以删除
var r=confirm(“这将改变剩余的来宾,你确定吗?”)并修复以下问题(如果愿意提供帮助!)!请接受我的回答;)(按下我答案旁边的检查按钮)