I have a bunch of JS variables which are basically place names in my country. The each variable includes a name, an id and a parent id.
Example: ….{\”id\”:\”200031\”,\”parent_id\”:\”200002\”,\”name\”:\”PlaceNameOne\”},{\”id\”:\”200027\”,\”parent_id\”:\”200002\”,\”name\”:\”PlaceNameTwo\”}….
What I need, is a script that will take all of this JS code and insert each place into it’s own row on a DB table. I have the database already, I just need this one off script to add the rows.
It should be quite an easy job for someone.
