if (empty($this->type)) $this->type = strtolower(preg_replace('/^([^:]+):.*$/','\1',$this->pdo));
if (!$this->type) return false;
- if ($v = $this->p('db.host')) $this->host = $v;
+ if ($v = $this->p('db_host')) $this->host = $v;
if ($this->conf_type('use_path')) {
if (empty($this->host)) $this->host = preg_replace('/^\w+:/','',$this->pdo);
#
$fields = $this->fields();
$fields_filter = [];
- #die($this->p('rows.fields'));
- #die($this->p('rows.fields'));
+ #die($this->p('rows_fields'));
+ #die($this->p('rows_fields'));
#bye($this->p());
- if ($this->p('rows.fields')) {
- $fields_filter = preg_split('/[^\w_]/',$this->p('rows.fields'));
+ if ($this->p('rows_fields')) {
+ $fields_filter = preg_split('/[^\w_]/',$this->p('rows_fields'));
foreach ($fields as $k => $field) {
if (!in_array($k,$fields_filter) and !isset($this->extras[$k])) unset($fields[$k]);
}