Current release is 2.1.6
(21 Nov 2014).
Users who have not yet upgraded to 2.1 should get security release 184.108.40.206
(1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.
Inserting an array of values into database
I have an array of values (not associative) that I'd like to insert to the database. First, I thought that this simple line of code will do this for me:
But it didn't work.
I checked class.mysqldriver.php, function GetInsert and found what I know: when you have an associative array of FieldName => Value pairs, it works like a charm.
Quite a common case when you just have your values to be inserted and you don't want to specify column names like:
INSERT INTO tbl_name VALUES(myvalue1, myvalue2, ... , myvalueX);
I think the function should handle that.
How can I avoid to build an associative array of FieldName => Value pairs?
0 · ·