Commit 5cca34e4 authored by S.Holzhauer's avatar S.Holzhauer

activiteiten refresh

parent 69118a50
......@@ -22,7 +22,15 @@ $date = date("Y-m-d");
echo "$date $time, Called with ID=$ID\n";
//if the ID is from a camera:
if ($ID != NULL && $ID != "IRPS001"){
if ($ID == "REFRESH_IRPS001"){
$sql = "INSERT INTO `Activiteiten`
SELECT `StartTime`, `EndTime`, `Activity`, `Movement`, 0, `Comment`, CURDATE(), `OuderID`
FROM `Leefpatroon`
else if ($ID != NULL && $ID != "IRPS001"){
//get the elderid connected to the camera.
$sql = "SELECT AlleenstaandeOuder_OuderID
FROM Camera
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment