update for Audit form Contact for Accredia M18b

This commit is contained in:
2024-09-18 16:01:31 +02:00
parent eb475f257e
commit 91ae77aff1
5 changed files with 332 additions and 200 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
include('db-connect.php'); // Connessione al database
if (isset($_POST['idcontacts'])) {
$idcontacts = $_POST['idcontacts'];
// Esegui la query per eliminare il contatto
$deleteQuery = $cmctrfdb->prepare("DELETE FROM contacts WHERE idcontacts = ?");
$deleteQuery->bind_param("i", $idcontacts);
if ($deleteQuery->execute()) {
echo 'success';
} else {
echo 'error';
}
$deleteQuery->close();
}