I am trying to make an import script from csv into post_gis, everything imports until I add the_geom column. I cannot figure where to place the st_geomfromtext('POINT( VARIABLE ,27700)')
and keep getting errors to do with the quotes, so I know I am doing something wrong with the placement of them.
This script (full version) was created following this John Boy Tutorial
$sql ="INSERT INTO teams_tbl (team_id, name, the_geom) VALUES
(
'".addslashes($data[0])."',
'".addslashes($data[1])."',
'st_geomfromtext('POINT(".addslashes($data[2])."27700)')'
)
";