blob: 7ac21df39c58e13a7bac67f501738c34510cd83e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
?>
|