Example #1
0
 public function fetch($from, $count, $where = 1)
 {
     $sql = "\n        SELECT\n          " . $this->config->selectFields() . "\n        FROM\n          " . $this->config->tableName() . "\n          " . $this->joinQuery() . "\n        WHERE\n          " . $where . "\n        ORDER BY\n            " . $this->config->orderBy($this->statusVariables) . "\n        LIMIT\n            {$from}, {$count}\n        ";
     $result = ipDb()->fetchAll($sql);
     return $result;
 }