“字段列表”中的codeigniter未知列?

时间:2014-11-17 00:52:11

标签: php mysql database codeigniter

控制器:

            $dbname = 'classified_coupon';
            $data['header'] = $this -> input -> post('header');
            $data['description'] = $this -> input -> post('description');
            $data['type'] = $type;
            $data['category_id'] = $this -> input -> post('main');
            $data['sub_id'] = $this -> input -> post('sub');
            $data['latitude'] = $this -> input -> post('lat');
            $data['longitude'] = $this -> input -> post('lng');
            $data['date'] = date('d.m.Y H:i:s');
            $data['user_id'] = $user_id['username'];

模型

public function insert($data,$database) {

    $insert = $this -> db -> insert($database, $data);

    if ($insert) {
        return TRUE;
    } else {
        return 0;
    }
}

错误号码:1054

“字段列表”中的未知列“纬度”

文件名:/home/clipartd/public_html/models/classified_model.php

行号:6

0 个答案:

没有答案