Reputation: 71
How to insert object to mysql table and display that object in google map ?
Upvotes: 0
Views: 51
Reputation: 1770
Use it as follows:
$mysql_data = serialize($google_map_object);
mysql_query("INSERT INTO your_table ('map_object') VALUES '$mysql_data'");
When retrieving it, use
$google_map_object = deserialize($mysql_data);
Upvotes: 1