//
# NB 28.03.16 $this->sql = $sql;
$this->debug(preg_replace('/(,|FROM|WHERE|HAVING|GROUP|ORDER)/i',"\n\\1",$sql),1);
- return array($sql,$where,$limit);
+ return array($sql,$where,$limit,$select_count);
}
public function rows(&$opt=array(),$opt_by_val=null) {
$format = $this->p('format');
if (!$format) bye("Invalid parameter!");
- list($sql,$where,$limit) = $this->rows_sql($opt);
+ list($sql,$where,$limit,$select_count) = $this->rows_sql($opt);
$st = $this->db()->conn->prepare($sql);
$st->execute();