return;
}
- $opt['count'] = $count;
- $opt['limit'] = $limit;
+ $this->count = $opt['count'] = $count;
+ $this->limit = $opt['limit'] = $limit;
if ($opt['is_html'] or $format=='wp') {
if (!$query) $this->err_sql($sql);
$tot = $query->fetch(PDO::FETCH_COLUMN);
- $opt['tot'] = $tot;
+ $this->tot = $opt['tot'] = $tot;
#if (!$tot) return;
} # < is_html
- $this->tot = $opt['tot'];
- $this->count = $opt['count'];
- $this->limit = $opt['limit'];
-
if ($count === 0 and $this->p('header') === 'force') {
echo $this->{"rows_begin_$format"}($this->fields());
}