Aggiunta link "Torna a lista clienti"

This commit is contained in:
2026-02-27 11:09:44 +01:00
parent 15719977d4
commit ffc97535d1

View File

@@ -35,6 +35,7 @@ $result = mysqli_query($conn, $sql);
<?php
if($result){
if((isset($_GET["customerId"]) || isset($_GET["orderId"])) && mysqli_num_rows($result) > 0) {
echo "<a href='index.php'>Torna alla lista clienti</a><br><br>";
echo "<form method='GET' action='index.php'>";
echo "<select id='orderId' name='orderId'>";
while($row = mysqli_fetch_assoc($result)) {
@@ -42,7 +43,7 @@ $result = mysqli_query($conn, $sql);
}
echo "</select>";
echo "<input type='submit' value='Visualizza Dettagli Ordine'>";
echo "</form>";
echo "</form><br>";
# Reset index della query
mysqli_data_seek($result, 0);
}