dashboardAmpeln

This commit is contained in:
SimonGschnell
2024-07-24 13:31:00 +02:00
parent 1211d63ccf
commit 1e3146d33f
5 changed files with 134 additions and 70 deletions
@@ -90,4 +90,18 @@ class Ampel_model extends DB_Model
else
return $result; //will contain the error-msg from execQuery
}
public function confirmAmpel($ampel_id, $uid)
{
if(isset($ampel_id) && isset($uid)){
return $this->execQuery('
INSERT INTO public.tbl_ampel_benutzer_bestaetigt (ampel_id, uid)
VALUES (?,?);', array($ampel_id, $uid));
}else{
return error("parameter were missing to execute the insert into");
}
}
}