$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) {
$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;
}
}
$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);
}