BestellungUndGericht
This commit is contained in:
@@ -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