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
@@ -5,7 +5,7 @@
namespace ppb\Controller;
use ppb\Library\Msg;
use ppb\Model\GerichtModel;
use ppb\Model\BestellungModel;
class BestellungController {
+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. ",";
+1 -1
View File
@@ -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. ",";