Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error inserting data #1002

Open
khantry opened this issue Nov 13, 2022 · 2 comments
Open

Error inserting data #1002

khantry opened this issue Nov 13, 2022 · 2 comments

Comments

@khantry
Copy link

khantry commented Nov 13, 2022

Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /var/www/html/db/vendor/joshcam/mysqli-database-class/MysqliDb.php on line 1838

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

@s-vhs
Copy link

s-vhs commented Jan 1, 2023

Data should be inserted. This is just an error it gives for some reason. I recommend implementing a debug-mode which you can turn off in production.

@RivenSkaye
Copy link

This seems weird to say the least. $datacolumns is the array there, with '`, `' being the glue string. The order is already correct as it stands, which makes me wonder if the parser is having problems with the mess of backticks and single quotes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants