PHP-MySQLi-Database-Class icon indicating copy to clipboard operation
PHP-MySQLi-Database-Class copied to clipboard

wrong implode function parameters

Open nathanaelmemis opened this issue 2 years ago • 1 comments

MysqliDb.php, line 1838: $this->_query .= ' (' . implode($dataColumns, ', ') . ') ';

should be

$this->_query .= ' (' . implode(', ', $dataColumns) . ') ';

note: this is for the last release

nathanaelmemis avatar Aug 21 '23 06:08 nathanaelmemis

I find this surprising. I have an insert statement in two different classes – it works in one class, but in the other, I encounter an error in the exact same line. When I swap the line between the classes, it now works in the previously problematic class. I just can't comprehend why it works in one class while being nearly identical to the other.

decMuc avatar Dec 02 '23 03:12 decMuc