Hello,
My problem is that the app calls the bellit link but doesn't send it any DATA.
< entry key="event.forward.enable" >true< /entry >
< entry key='event.forward.url' >http://192.168.1.2/textevent.php< /entry >
The php code is here
php
session_start();
if(isset($_POST)){
$conn = new mysqli('localhost','root','7ryu1KP5wRkSCxGT','Uctovnictvo','3306');
mysqli_set_charset($conn,"utf8");
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$text=implode("|",$_POST);
$addevent= "INSERT INTO `Dieta`( `spz`, `geoenter`, `geoid`, `time`, `poznamka`) VALUES ('{$_POST['device']['name']}','{$_POST['geofence']['name']}','{$_POST['event']['id']}','{$_POST['event']['serverTime']}','$text')";
if($conn->query($addevent) === TRUE){
echo "OK" ;}
else {
echo "Error" . $conn->error;
}
$conn->close();
} else {
header("Location: index.php");
exit;
}
The ?_POST array is empty.
And why call the link 3x if is only one event?
Hello,
My problem is that the app calls the bellit link but doesn't send it any DATA.
The php code is here
php
And why call the link 3x if is only one event?