From: Nicolas Boisselier Date: Thu, 21 Apr 2016 08:50:25 +0000 (+0100) Subject: wp table X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=60890feca08b8c93375ae5680010cbaa0fd6845c;p=nb.git wp table --- diff --git a/lib/php/db/table.php b/lib/php/db/table.php index 721e9449..09660aa8 100644 --- a/lib/php/db/table.php +++ b/lib/php/db/table.php @@ -626,7 +626,7 @@ Class Table extends nb { // # 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) { @@ -636,7 +636,7 @@ Class Table extends nb { $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();