Dear All,
I have 2 types of insert into my mysql database. One is the original string which has no problem. The second type if that I will cut and append new value into the original string. Here when I do like this
$routeGeoFenceString = "LINESTRING(".$initialLon." ".$initialLat.",".$array2[0].")";
The space which I put between the $initialLon." ".$initialLat is the one causing problem. Cause the original string when I see from my database is all on one line
LINESTRING(100.91914108115823 4.662998515846695,100.99695964097378 4.481421876277069)
But when this string I put on notepad this how I get problem string cause the it comes on the second line.
LINESTRING(100.99695964097378
4.481421876277069,100.99802356659626 4.48081391877851,100.9994421340929 4.478787393783313)
I have 2 types of insert into my mysql database. One is the original string which has no problem. The second type if that I will cut and append new value into the original string. Here when I do like this
$routeGeoFenceString = "LINESTRING(".$initialLon." ".$initialLat.",".$array2[0].")";
The space which I put between the $initialLon." ".$initialLat is the one causing problem. Cause the original string when I see from my database is all on one line
LINESTRING(100.91914108115823 4.662998515846695,100.99695964097378 4.481421876277069)
But when this string I put on notepad this how I get problem string cause the it comes on the second line.
LINESTRING(100.99695964097378
4.481421876277069,100.99802356659626 4.48081391877851,100.9994421340929 4.478787393783313)