]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/table.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 14 Dec 2017 21:55:46 +0000 (21:55 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 14 Dec 2017 21:55:46 +0000 (21:55 +0000)
lib/php/db/table.php
www/dbq/dbq.php

index 6f067d9abab07f1a88a311e07b036cf054ece14a..a53903be447af9560bb19bccc6884754c7b6ce4c 100644 (file)
@@ -1711,7 +1711,8 @@ Class Table extends nb {
     $keys_values = [];
     $fields = [];
     $fields_values = [];
-    $bindParam = false; # NB 12.05.17: Not working ???? 
+# NB 14.12.17     $bindParam = false; # NB 12.05.17: Not working ???? 
+    $bindParam = true; # NB 12.05.17: Not working ???? 
 
     foreach ($this->fields() as $name => $field) {
 
@@ -1774,7 +1775,7 @@ Class Table extends nb {
     $info = [ 'sql' => $sql ] + $info;
 
     if ($bindParam and !($query = $this->db()->conn->prepare($sql))) {
-      err('PDO::errorInfo(): ' .join(' ', $this->db()->conn->errorInfo()) .NB_EOL);
+      $this->err('PDO::errorInfo(): ' .join(' ', $this->db()->conn->errorInfo()) .NB_EOL);
       return false;
     }
 
index 462c750cd2691bf5dbfc870c1c08b807eba1fd23..004fcdcac6b8720ca34f7a0755ad879d03ff9c6a 100644 (file)
@@ -388,7 +388,8 @@ class DbQ extends nb {
                }
 
                $this->table->html_edit($values,
-                       $this->table->base . '/' . ($add ? 'insert' : 'update' . '/' . urlencode($this->params['args'])) . '/'
+# NB 14.12.17                  $this->table->base . '/' . ($add ? 'insert' : 'update' . '/' . urlencode($this->params['args'])) . '/'
+                       $this->table->base . '/' . ($add ? 'insert' : 'update') . '/'
                ,$add);
        }