Pulizia caratteri in eccesso

This commit is contained in:
loviuz 2020-08-08 19:10:05 +02:00
parent 4a53471e88
commit 0e9ca4b91e
1 changed files with 5 additions and 5 deletions

View File

@ -35,11 +35,11 @@ if (!empty($data) ){
];
} else {
if ($stmt->bind_param('ssidd', $mac, $ssid, $dbm, $latitude, $longitude)) {
$mac = $data->address;
$ssid = $data->essid;
$dbm = $data->signal;
$latitude = $data->latitude;
$longitude = $data->longitude;
$mac = trim($data->address);
$ssid = trim($data->essid);
$dbm = trim($data->signal);
$latitude = trim($data->latitude);
$longitude = trim($data->longitude);
// Esecuzione statement
$stmt->execute();