On Oct 23, 11:34 am, phicarre <[email protected]> wrote:
> I cannot do that because I read only one record from mysql:
>
> $points=array();
> while ($row=...){
> $points[]=$row;
>
> }
>
> I do:
> $row = mysql_fetch_array($result);
> $points = $row['Points'];
>
> //$points is a string such as "(1.1,9.4),(1.15,9.4),(1.2,9.35)"
>
> I must transform this string in array: is that correct ?
> After I can do json_encode and call the function.
That is correct. Do a var_dump on the string before you pass it to
json_encode and then after it is encoded via json_encode. Post that.
Then post what javascript you are outputting (by viewing the source
code in the browser).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---