diff options
Diffstat (limited to 'setMarkerPos.php')
| -rwxr-xr-x | setMarkerPos.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/setMarkerPos.php b/setMarkerPos.php new file mode 100755 index 0000000..7ac21df --- /dev/null +++ b/setMarkerPos.php @@ -0,0 +1,17 @@ +<?php +include "config.php"; + +$table= $_GET["table"]; +$lat= $_GET["lat"]; +$lng= $_GET["lng"]; +$index= $_GET["id"]; +$Google_coords= $_GET["google_coords"]; + +mysql_connect($host, $login, $pword) or die(mysql_error()); +mysql_select_db($db) or die(mysql_error()); +$query="UPDATE $table SET lat=$lat, lng=$lng, Google_coords=$google_coords WHERE id=$index"; +$result=mysql_query($query); +echo $result; +mysql_close(); + +?>
\ No newline at end of file |
