SQL spaltennamen vorkommen im code angepasst
This commit is contained in:
@@ -35,12 +35,12 @@ class StandortModel extends Database {
|
||||
|
||||
public function createStandort($data) {
|
||||
$pdo = $this->linkDB();
|
||||
$sql = "INSERT INTO Standort (straße, hausnr, postleitzahl, ort, land, tel, email)
|
||||
VALUES (:straße, :hausnr, :postleitzahl, :ort, :land, :tel, :email);";
|
||||
$sql = "INSERT INTO Standort (strasse, hausnr, plz, ort, land, tel, email)
|
||||
VALUES (:strasse, :hausnr, :plz, :ort, :land, :tel, :email);";
|
||||
$params = [
|
||||
":straße" => $data['straße'],
|
||||
":strasse" => $data['strasse'],
|
||||
":hausnr" => $data['hausnr'],
|
||||
":postleitzahl" => $data['postleitzahl'],
|
||||
":plz" => $data['plz'],
|
||||
":ort" => $data['ort'],
|
||||
":land" => $data['land'],
|
||||
":tel" => $data['tel'],
|
||||
@@ -59,18 +59,18 @@ class StandortModel extends Database {
|
||||
public function updateStandort($standortid, $data) {
|
||||
$pdo = $this->linkDB();
|
||||
$sql = "UPDATE Standort SET
|
||||
straße = :straße,
|
||||
strasse = :strasse,
|
||||
hausnr = :hausnr,
|
||||
postleitzahl = :postleitzahl,
|
||||
plz = :plz,
|
||||
ort = :ort,
|
||||
land = :land,
|
||||
tel = :tel,
|
||||
email = :email
|
||||
WHERE standortid = :standortid;";
|
||||
$params = [
|
||||
":straße" => $data['straße'],
|
||||
":strasse" => $data['strasse'],
|
||||
":hausnr" => $data['hausnr'],
|
||||
":postleitzahl" => $data['postleitzahl'],
|
||||
":plz" => $data['plz'],
|
||||
":ort" => $data['ort'],
|
||||
":land" => $data['land'],
|
||||
":tel" => $data['tel'],
|
||||
|
Reference in New Issue
Block a user