BestellungUndGericht

This commit is contained in:
PBS2H22AAL committed 2023-12-14 20:03:29 +01:00
1 parent c28a3eb452
commit 5765d49e01
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ class BestellungModel extends Database {
*/
public function updateBestellung($id, $data){
$pdo = $this->linkDB();
$sql = "UPDATE Bestellung SET "
$sql = "UPDATE Bestellung SET ";
//Fügt alle Parameter und einen Platzhalter in den SQL Befehl ein
foreach (array_keys($data) as $key){
$sql .= $key . " = :" . $key. ",";