From 63f6c21e021582db6ffab03b7ad6db24c651fb07 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Mon, 13 Apr 2026 13:40:44 +0200 Subject: [PATCH] Aggiunta controllo StockQuantity (prevenire ordini con prodotti esauriti) --- src/index.php | 6 +++++- src/product.php | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index c44cc25..bac08ca 100644 --- a/src/index.php +++ b/src/index.php @@ -41,7 +41,11 @@ if ($result === false) {
Immagine prodotto

" . htmlspecialchars($row['ProductName']) . ""; ?>

- + 0): ?> + + + + diff --git a/src/product.php b/src/product.php index b8dd98b..ae1075a 100644 --- a/src/product.php +++ b/src/product.php @@ -54,7 +54,11 @@ if ($stmt = $conn->prepare($sql)) {

Descrizione:

Prezzo:

Quantità disponibile:

- + 0): ?> + + + +