充值和提现申请分页问题

2016-07-07 15:01 来源:www.chinab4c.com 作者:ecshop专家

在做充值和提现申请的过程中,我发现了这么一个问题,总记录条数和实际的条数不一样,显示的记录就是那么多条,但总记录条数远大于实际的。后来查看了下,是代码的问题。解决这个问题的方法:
修改admin文件夹下user_account.php 523行//$sql = "SELECT COUNT(*) FROM " .$GLOBALS['ecs']->table('user_account'). " AS ua, ".$GLOBALS['ecs']->table('users') . " AS u " . $where;(以前的sql语句)
$sql = "SELECT COUNT(*) FROM " .$GLOBALS['ecs']->table('user_account'). " AS ua left join ". $GLOBALS['ecs']->table('users') . " AS uon ua.user_id =u.user_id" . $where;(现在的sql语句)