Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/257.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.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 错误号:1048列';btc&x27;不能为空_Php_Mysql_Arrays_Codeigniter_Mysqli - Fatal编程技术网

Php 错误号:1048列';btc&x27;不能为空

Php 错误号:1048列';btc&x27;不能为空,php,mysql,arrays,codeigniter,mysqli,Php,Mysql,Arrays,Codeigniter,Mysqli,此代码显示 错误号码:1048 列“btc”不能为空 但实际上我发送的一切都是正确的,我甚至尝试了URL参数,但它仍然说btc不能为空。怎么了 $date=''; $timezone = "Asia/Karachi"; if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone); $date=date('d-m-Y

此代码显示

错误号码:1048

列“btc”不能为空

但实际上我发送的一切都是正确的,我甚至尝试了URL参数,但它仍然说btc不能为空。怎么了

    $date='';
        $timezone = "Asia/Karachi";
        if(function_exists('date_default_timezone_set'))
        date_default_timezone_set($timezone);
        $date=date('d-m-Y | H:i:s');
    $data=array(
        'username' => $this->session->userdata('username'),
        'btc' => $this->input->post('btc'),
        'networkfee' => $this->input->post('networkfee'),
        'address' => $this->input->post('address'),
        'riseupfee' => $this->input->post('riseupfee'),
        'date' => $date,
        'status' => 'Sent'
    );
    $this->load->model('ajax_model');
    $data = $this->ajax_model->withdraw_btc($data);
发送ajax请求

   $.ajax({
                type:'POST',
                data:{btc: '0.0001', address: 'xxxx', risupfee: '0.001', 
   networkfee: '0.0001'},
                url:'<?php echo site_url('ajax/withdraw_btc'); ?>',
                success: function(result){
                    alert(result);


                }
$.ajax({
类型:'POST',
数据:{btc:'0.0001',地址:'xxxx',risupfee:'0.001',
网络费:'0.0001'},
url:“”,
成功:功能(结果){
警报(结果);
}

检查“btc”行的数据库设置。您可能发送了错误的类型

我甚至尝试过,但它仍然显示btc不能为空
打印($data)
这是什么?