I have crateio set up and it's working fine using the PDO class.
I'm, trying to get a set of geopoints into the db using binds.
I have tried foreach but doesn't seem to work, I've tried this - which also doesn't work.
The geopoint column is set to geo_point_array.
$route="[[30.33333, -6.13336],[30.33333, -6.13336]]";
$db = new Database;
$db->Query("insert into geopoints (id, longlat, name) values ('33',?,'pat')");
$db->bind(1, $route);
$db->execute();
How do I add this set of cordinates to the db?
Thanks
PDO::query
returnsPDOStatement
: