add files

This commit is contained in:
tbS
2025-08-02 13:10:21 +02:00
commit aa4fa9ae0f
702 changed files with 103724 additions and 0 deletions

26
db/write.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
include_once '../config/config.php';
$errors = [];
$data = [];
//Terminvorschlag 1 Prüfung ob zugesagter termin bereits belegt
if (empty($_POST['vorname'])) {
$errors['vorname'] = 'ID FEHLT!.';
}
//$id = $_POST['id'];
$sql = "UPDATE kunden SET vorname='".$_POST['vorname']."', nachname='".$_POST['nachname']."', straße='".$_POST['straße']."', ort='".$_POST['ort']."', plz='".$_POST['plz']."', telefonnummer='".$_POST['telefonnummer']."', fahrzeuge='".$_POST['fahrzeuge']."' where id=".$_POST['id']."";
$db->query($sql);
$data['success'] = true;
echo json_encode($data);
//echo json_encode($data);