Aggiunta form selezione cliente
This commit is contained in:
@@ -51,7 +51,14 @@ $result = mysqli_query($conn, $sql);
|
|||||||
echo "WIP";
|
echo "WIP";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "ERROR: FANKYULO";
|
echo "<form method='GET' action='index.php'>";
|
||||||
|
echo "<select id='customerId' name='customerId'>";
|
||||||
|
while ($row = mysqli_fetch_assoc($result)) {
|
||||||
|
echo "<option value='" . $row['CustomerID'] . "'>" . $row['CustomerID'] . " - " . $row['CustomerName'] . "</option>";
|
||||||
|
}
|
||||||
|
echo "</select><br>";
|
||||||
|
echo "<input type='submit' value='Visualizza Ordini'>";
|
||||||
|
echo "</form>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user