21 lines
617 B
PHP
21 lines
617 B
PHP
<?php
|
|
|
|
|
|
include_once '../config/config.php';
|
|
|
|
$errors = [];
|
|
$data = [];
|
|
|
|
|
|
//$id = $_POST['id'];
|
|
$sql = "INSERT INTO aufträge (beendet, kunden_id, auftragname, auftrag_beschreibung, auftrag_beginn, auftrag_ende, materialien, preis, anzahlung, fahrzeug) VALUES ('".$_POST['beendet']."', '".$_POST['id']."', '".$_POST['auftragname']."', '".$_POST['beschreibung']."', '".$_POST['beginn']."', '".$_POST['ende']."', '".$_POST['materialien']."', '".$_POST['preis']."', '".$_POST['bezahlt']."', '".$_POST['fahrzeug']."' )";
|
|
$db->query($sql);
|
|
|
|
$data['success'] = true;
|
|
|
|
echo json_encode($data);
|
|
|
|
|
|
|
|
|
|
//echo json_encode($data);
|