|
本帖最后由 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);
}
输入数字、字母均无问题,输入中文有些字段在数据库中显示为空?
|
|