mirror of
https://codeberg.org/ThisIsMiseryy/techstore
synced 2026-05-14 14:52:04 +00:00
Aggiunto link pagina prodotto a prodotti homepage
This commit is contained in:
@@ -37,8 +37,8 @@ if ($result === false) {
|
|||||||
<div class="products-grid">
|
<div class="products-grid">
|
||||||
<?php while ($row = $result->fetch_assoc()): ?>
|
<?php while ($row = $result->fetch_assoc()): ?>
|
||||||
<div class="product-card">
|
<div class="product-card">
|
||||||
<img src="img/<?php echo htmlspecialchars($row['ImagePath']); ?>" alt="Immagine prodotto">
|
<a href="product.php?id=<?php echo $row['ProductID']; ?>"><img src="img/<?php echo htmlspecialchars($row['ImagePath']); ?>" alt="Immagine prodotto"></a>
|
||||||
<h3><?php echo htmlspecialchars($row['ProductName']); ?></h3>
|
<h3><?php echo "<a href='product.php?id=" . $row['ProductID'] . "'>" . htmlspecialchars($row['ProductName']) . "</a>"; ?></h3>
|
||||||
<p><?php echo htmlspecialchars($row['Price']); ?>€</p>
|
<p><?php echo htmlspecialchars($row['Price']); ?>€</p>
|
||||||
<button>Aggiungi al carrello</button>
|
<button>Aggiungi al carrello</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user