Tje
Tje

Reputation: 71

How to Insert and Display google map via mysql table

How to insert object to mysql table and display that object in google map ?

Upvotes: 0

Views: 51

Answers (1)

DJ'
DJ'

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

Related Questions