发布网友 发布时间:2022-04-06 04:21
共1个回答
热心网友 时间:2022-04-06 05:51
我给你举个例子吧 ,按照你上面举得例子:
use Think\Controller;
class LoginController extends Controller {
public function login(){
$User = M('user');
$condition['email'] = I("post.email",'',email);
$user_result = $User->where($condition)->select();
$userpass = $user_result['userpass'];
}
}