I hope there is a php genius here somewhere who can help me with this. I have a database table called baeir, it has the following fields:
b_id (primary k
kml has nothing to do with your php. Your kml file is basically an xml file which is specifically used in google earth ang google map applications. Your Kml file needs to pass a validity test in order for you to use it. You can use the following link to validate your kml file. Kml validator. Your kml file will contain the predefined tags like point
coordinate
description
so that it can be parsed. If you want to take a look as to how the kml file looks like, here you go
Sample Kml File
Needless to say your KML should contain the info in the proper tags and then you need to parse it. e-g lat and lng can go in to the coordinate tag. description tag can hold your text description, say comment.