20 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
48 $sql =
"SELECT {$field} COUNT(*) FROM `{$this->handler->table}`";
57 if ($groupby ==
false) {
58 list ($count) = $this->handler->db->fetchRow(
$result);
62 while (list ($id, $count) = $this->handler->db->fetchRow(
$result)) {
81 $groupby_key = $this->handler->keyName;
87 $groupby_key = $groupby;
90 $sql =
"SELECT {$groupby_key}, COUNT(*) AS count"
91 .
" FROM `{$this->handler->table}`"
93 .
" GROUP BY {$groupby_key}";
97 while (list ($id, $count) = $this->handler->db->fetchRow(
$result)) {