X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/42bd3e809b0fa95d3a463462e242caf40d98bf79..6f6f38ad845e089ef732873cfcf8e321d8cc1e38:/web/send.php diff --git a/web/send.php b/web/send.php index 7a69838..60d21db 100644 --- a/web/send.php +++ b/web/send.php @@ -21,22 +21,11 @@ } $str = "CALL meteo.submit_value('".$stype."','".$sid."','".$param."',".$value.",NULL)"; - if (!$connection->query($str)) { - header('HTTP/1.1 500 Internal Server Error'); - exit; - } else { - $connection->commit(); -?> - - - - Meteo logger - - -OK Logged - - -query($str)) { + header('HTTP/1.1 500 Internal Server Error'); + exit; + } else { + $connection->commit(); + echo "OK Logged"; } -?>