ntdba 发表于 2013-3-24 15:28:47

一个奇怪的问题

本帖最后由 ntdba 于 2013-3-24 18:53 编辑

        function user_insert() {
                $this->load->model('user_m');
                $arr = array(
                        'user_id' => $this->input->post('user_id',''),
                        'name' => $this->input->post('username',''),
                        'birthday' => $this->input->post('birthday',''),
                        'minzu' => $this->input->post('minzu',''),
                        'jiguan' => $this->input->post('jiguan',''),
                        'zhengzhi' => $this->input->post('zhengzhi',''),
                        'huying' => $this->input->post('huying',''),
                        'card' => $this->input->post('card',''),
                        'add_home' => $this->input->post('add_home',''),
                        'xueli' => $this->input->post('xueli',''),
                        'xuewei' => $this->input->post('xuewei',''),
                        'zhuanye' => $this->input->post('zhuanye',''),
                        'mobile' => $this->input->post('mobile',''),
                        'email' => $this->input->post('email',''),
                        'techang' => $this->input->post('techang','')
                        );
      $this->user_m->user_add($arr);
    }
输入数字、字母均无问题,输入中文有些字段在数据库中显示为空?



ntdba 发表于 2013-3-24 18:59:40

刚刚试了一下,中文输入有问题。

ntdba 发表于 2013-3-24 19:04:29

问题解决了,论坛上早就有了,三码合一。
页: [1]
查看完整版本: 一个奇怪的问题