From f357d509a83debac6c6fedf06a1bf51505218b0b Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Fri, 20 Mar 2026 11:59:06 +0100 Subject: [PATCH] Modifica query SQL homepage --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 337a43e..3c2969a 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ include 'db_conf.php'; // Query per ottenere tutti i prodotti -$sql = "SELECT * FROM Products"; +$sql = "SELECT p.ProductID, p.ProductName, c.Name AS 'CategoryName', p.Description, p.Price, p.StockQuantity FROM Products p JOIN Categories c ON p.CategoryID=c.CategoryID"; $result = $conn->query($sql); if ($result === false) {