add files
This commit is contained in:
21
db/add_aufträge.php
Normal file
21
db/add_aufträge.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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);
|
||||
Reference in New Issue
Block a user