为什么 echo 提供16
而不是 SQL 查询UPDATE...
?
for ($i=0;...) {
$lat = round(($deg + $min/60 + $sec/3600),6);
$query = "UPDATE `Parking`
SET lat=" . $lat . "
WHERE id = " . $i+16 . "";
$result=ejecutar_query($query);
echo $query;
}