thinkphp 多表 查询一条数据
publicfunctionedit(){$id=I('get.id');$uid=I('get.uid');$user=M('userinfo');$db=$user-...
public function edit(){
$id = I('get.id');
$uid = I('get.uid');
$user = M('userinfo');
$db = $user->join('xd_user on xd_userinfo.uid = xd_user.id')->select();
$this->assign($db);
$this->display();
}
如何能够查询一条数据??? 展开
$id = I('get.id');
$uid = I('get.uid');
$user = M('userinfo');
$db = $user->join('xd_user on xd_userinfo.uid = xd_user.id')->select();
$this->assign($db);
$this->display();
}
如何能够查询一条数据??? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询