From b7f96ba7e2d161e5223965d9207d97a9c7dcd629 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Fri, 20 Mar 2026 11:26:31 +0100 Subject: [PATCH] Aggiunta pagina web base (mostra tabella con tutti i campi di Products) --- index.php | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 index.php diff --git a/index.php b/index.php new file mode 100644 index 0000000..aaa03a9 --- /dev/null +++ b/index.php @@ -0,0 +1,66 @@ +query($sql); + +if ($result === false) { + die("Errore nella query: " . $conn->error); +} +?> + + + + + + + TechStore - Prodotti + + + +

Prodotti TechStore

+ + num_rows > 0): ?> + + + + fetch_fields(); + foreach ($fields as $field) { + echo ""; + } + ?> + + + + fetch_assoc()): ?> + + + + + + + +
" . htmlspecialchars($field->name) . "
+ +

Nessun prodotto trovato.

+ + + close(); ?> + +