]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorDevops <sys@15gifts.com>
Mon, 15 May 2017 15:21:57 +0000 (16:21 +0100)
committerDevops <sys@15gifts.com>
Mon, 15 May 2017 15:21:57 +0000 (16:21 +0100)
lib/php/db.php
lib/php/db/table.php
www/dbq/dbq.php

index db6d03b7c347ca8d60367a223f7545f55c8fb6f4..48a23109ae8a838d8f186677e8f53e24e49df6e2 100644 (file)
@@ -198,7 +198,7 @@ class Db extends nb {
     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);
index 44fb2e60fdb88d63c6390d653dff6565c246188f..47fc29721e9fae35dd44ab5f65e7dfdaeae6f91a 100644 (file)
@@ -1004,11 +1004,11 @@ Class Table extends nb {
     #
     $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]);
       }
index 11e9f6c3d597fb3a49a04a3866715043b4f456ae..4e1935f51f075264e56bcd8daed15519a18f85c8 100644 (file)
@@ -984,6 +984,5 @@ EOF;
   }
 
 }
-#bye($_SERVER['QUERY_STRING']);
 $DBQ = new DbQ(['run'=>true]);
 ?>