if ($insert and $t->type == 'table') {
# NB 04.12.17: Use instead "cleaner" option db_type_from
# NB 04.12.17 if ($type_from) $this->type = $type_from;
- $t->rows($row_opt);
+ $o = $row_opt;
+ $t->rows($o);
# NB 04.12.17 if ($type_to) $this->type = $type_to;
}
$sql = $count ? "SELECT count(*)" : "SELECT ".trim( $select_count[0].' '.join(',',$select_fields) ). $this->select_extras();
$sql .= " FROM ".$this->sql_name();
$sql .= $where;
- #bye($sql);
if ($this->p('orderby') and !$count) $sql .= ' ORDER BY '.$this->p('orderby');
if (!$format) $this->bye("Parameter `format` missing!");
}
+#debug($opt);
list($sql,$where,$limit,$select_count) = $this->rows_sql($opt);
$st = $this->db()->conn->prepare($sql);#,[PDO::ATTR_ERRMODE => PDO::ERRMODE_SILENT]);
$st->execute();