phpcms v9前台内容页获取当前登录用户的所有会员信息
<?$m_info=get_memberinfo_buyusername($username);$uid=$m_info['userid'];if(isset($uid)...
<?
$m_info = get_memberinfo_buyusername($username);
$uid = $m_info['userid'];
if(isset($uid)){
$m_more_db = getcache('member_model', 'commons');
$this->db->table_name = $this->db->db_tablepre.$m_more_db[$m_info['modelid']]['tablename'];
$m_more = $this->db->get_one(array('userid'=>$uid));
}
?>
使用这段可以获取到,但获取的是同一个用户的,切换用户后的信息都相同 展开
$m_info = get_memberinfo_buyusername($username);
$uid = $m_info['userid'];
if(isset($uid)){
$m_more_db = getcache('member_model', 'commons');
$this->db->table_name = $this->db->db_tablepre.$m_more_db[$m_info['modelid']]['tablename'];
$m_more = $this->db->get_one(array('userid'=>$uid));
}
?>
使用这段可以获取到,但获取的是同一个用户的,切换用户后的信息都相同 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询