ecshop 前台如何显示会员总数 或注册时获取最新的user_id
2个回答
2014-05-15
展开全部
$sql = "SELECT count(*) as num FROM " . $GLOBALS['ecs']->table('users');
$usernum = $GLOBALS['db']->getOne($sql);
echo $usernum['num'];
$usernum = $GLOBALS['db']->getOne($sql);
echo $usernum['num'];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询