add files
This commit is contained in:
21
db/del.php
Normal file
21
db/del.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
|
||||
include_once '../config/config.php';
|
||||
|
||||
$errors = [];
|
||||
$data = [];
|
||||
|
||||
|
||||
//$id = $_POST['id'];
|
||||
$sql = "DELETE FROM kunden WHERE id=".$_POST['id']."";
|
||||
$db->query($sql);
|
||||
|
||||
$data['success'] = true;
|
||||
|
||||
echo json_encode($data);
|
||||
|
||||
|
||||
|
||||
|
||||
//echo json_encode($data);
|
||||
Reference in New Issue
Block a user