How do I insert an array into crate?
I'm using the latest Crate-PDO, but keep receiving this notice
Notice: Array to string conversion in .../Crate/PDO/PDOStatement.php on line 610
and
Array to string conversion in .../myPdoClass.php on line 118
I'm using this code:
$myArray = ['1', '2', '3', '4', '5'];
$db = new Database;
$db->Query("insert into tbl (id, arrayCol) values (?,?)");
$db->bind(1, '1');
$db->bind(2, $myArray);
$db->execute();
Any help would be great, thanks