امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
I have been trouble using fetchAllKeyed and getting pagination to work. The problem is I don't have a finder to get total from/
Here is the start of my code, and this works fine.
PHP:
Read more
Here is the start of my code, and this works fine.
PHP:
کد:
$page = $this->filterPage();
$perPage = 40;
$offset = ($page - 1) * $perPage;
$db = \XF::db();
$values = $db->fetchAllKeyed("select xf_user.user_id, xf_user.username, xf_user.message_count, xf_user.warning_points, sum(xf_report.report_count) as report_count
from...
Read more
