$data = array(
'password' => I('password', '', 'htmlspecialchars'),
);
if(M('users')->data($data)->add() && M('userlogin')->data($userdata)->add()){
$this->success('添加成功','index');
$this->redirect('index');
}else{
$this->error('添加失败');
$this->display();
};
如何对密码进行md5的加密
最佳答案