iwa-panda1

Manage Weather Data by International Weather Agency (Version 1)
Log | Files | Refs

commit 4172bcb4e93128b7c493fc64be94ad5401a1d9b4
parent beda041affacdf47db41929a4ccf2d846dcc9ddc
Author: Kninteman <[email protected]>
Date:   Sat, 25 Mar 2023 16:22:01 +0100

Update datainserter.php

Commentaar

Diffstat:
Mdatainserter.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/datainserter.php b/datainserter.php @@ -26,8 +26,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $time = $_POST['TIME']; $temperatuur = $_POST['TEMP']; $dauwpunt = $_POST['DEWP']; - $luchtdrukzeeniveau = $_POST['SLP']; $luchtdrukstationniveau = $_POST['STP']; + $luchtdrukzeeniveau = $_POST['SLP']; $zichtbaarheid = $_POST['VISIB']; $windsnelheid = $_POST['WDSP']; $neerslag = $_POST['PRCP']; @@ -49,7 +49,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $datetime = $date . $time; // Bind parameters to prepared statement - mysqli_stmt_bind_param($stmt, "ssi", $station, $datetime, $valid, $dauwpunt, $luchtdrukzeeniveau, $luchtdrukstationniveau, $zichtbaarheid, $windsnelheid, $neerslag, $sneeuwdiepte, $gebeurtenissen, $bewolking, $windrichting); + mysqli_stmt_bind_param($stmt, "ssiiiiiiiisii", $station, $datetime, $valid, $dauwpunt, $luchtdrukstationniveau, $luchtdrukzeeniveau, $zichtbaarheid, $windsnelheid, $neerslag, $sneeuwdiepte, $gebeurtenissen, $bewolking, $windrichting); // Execute prepared statement $result = mysqli_stmt_execute($stmt);