Änderungen Dienstag

This commit is contained in:
aschwarz
2023-03-21 14:17:05 +01:00
parent 5d8b00feba
commit b9e9f89a3d
42 changed files with 14307 additions and 4634 deletions

View File

@ -2,16 +2,15 @@
require_once("../config.inc.php");
$function = $_POST['function'];
if($function == 'delete'){
$tabelle = $_POST['tabelle'];
$spalte = $_POST['spalte'];
$id = $_POST['id'];
$stmt = $db->query("DELETE FROM $tabelle WHERE $spalte = $id");
if($stmt){
echo "success";
echo "success: DELETE FROM $tabelle WHERE $spalte = $id";
}else{
echo -1;
echo "error: DELETE FROM $tabelle WHERE $spalte = $id";
}
}