Query failed: ERROR: parse error - invalid geometry
HINT: “POINT($l” <-- parse error at position 8 within geometry
when I hard code the variables it works but when I try to request them it fails.
can someone help me?
$col_value | \n"; } echo "\t
Query failed: ERROR: parse error - invalid geometry
HINT: “POINT($l” <-- parse error at position 8 within geometry
when I hard code the variables it works but when I try to request them it fails.
can someone help me?
$col_value | \n"; } echo "\t
Use pdo…
Wouldn’t the outcome from the sql error still be a problem?
I’m not familiar with PDO! Is there no fix for the way it is now ???
The problem is here:
[php]SELECT “name”, “state” FROM “public”.county
WHERE ST_Contains(county.the_geom,
ST_Transform(ST_GeomFromText(‘POINT($lon $lat)’, 4326),4269)[/php]
You need to ensure that variables being used are the proper type to be dropped in, as well.
PDO would wrap the query and drop the variables in as the proper types for use and protect the database at the same time.