added field for td and hide show identification parts

This commit is contained in:
2025-05-21 09:54:12 +02:00
parent fa44531778
commit 449bcc3153
18 changed files with 387 additions and 114 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
include "../db.php";
if (isset($_POST['ididentificationparts']) && isset($_POST['hide'])) {
$ididentificationparts = $_POST['ididentificationparts'];
$newHide = $_POST['hide'];
$stmt = $conn->prepare("UPDATE identificationparts SET hide = ? WHERE ididentificationparts = ?");
$stmt->bind_param("si", $newHide, $ididentificationparts);
if ($stmt->execute()) {
echo "Stato aggiornato con successo";
} else {
echo "Errore: " . $stmt->error;
}
$stmt->close();
$conn->close();
} else {
echo "Parametri mancanti";
}