thinkphp怎么获取数据库数据
2017-10-23
展开全部
我给你举个例子吧 ,按照你上面举得例子:
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'];
}
}
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'];
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |