BestellungUndGericht
This commit is contained in:
1 parent
c28a3eb452
commit
5765d49e01
3 files changed
+3
-3
No files matched your search
@@ -62,7 +62,7 @@ class GerichtModel extends Database {
|
||||
*/
|
||||
public function updateGericht($id, $data){
|
||||
$pdo = $this->linkDB();
|
||||
$sql = "UPDATE Gericht SET "
|
||||
$sql = "UPDATE Gericht SET ";
|
||||
//Fügt alle Parameter und einen Platzhalter in den SQL Befehl ein
|
||||
foreach (array_keys($data) as $key){
|
||||
$sql .= $key . " = :" . $key. ",";
|
||||
|
||||
Reference in new issue
Block a user