用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1220|回复: 2
收起左侧

一个奇怪的问题

[复制链接]
发表于 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);
    }
输入数字、字母均无问题,输入中文有些字段在数据库中显示为空?



 楼主| 发表于 2013-3-24 18:59:40 | 显示全部楼层
刚刚试了一下,中文输入有问题。
 楼主| 发表于 2013-3-24 19:04:29 | 显示全部楼层
问题解决了,论坛上早就有了,三码合一。

本版积分规则