Populating Spatial data via PHP
Briefly

My initial attempt to use spatial data options in MySQL using Point type for location columns presented challenges, particularly with the execution of prepared statements.
I discovered that while using prepared statements to insert a Point into the database worked without error, the loc column defaulted to null when executing the update.
The issue with using placeholders appeared to be the way I was forming the Point string, which needed to match the format accepted by MySQL.
Directly inserting Point values in a query works fine, indicating that the problem lies within the handling of the prepared statement placeholders.
Read at SitePoint Forums | Web Development & Design Community
[
|
]