summaryrefslogtreecommitdiff
path: root/setMarkerPos.php
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-08 22:59:04 +0100
committerComment <tim@gray.(none)>2013-05-08 22:59:04 +0100
commit4f81e9399051cc90ccddeb69b785d7422a28a1ff (patch)
treeea5187184ed61114b9315371e5c2d709bdf26c4f /setMarkerPos.php
initial commit
Diffstat (limited to 'setMarkerPos.php')
-rwxr-xr-xsetMarkerPos.php17
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