mirror of
https://github.com/RustyRaptor/Culidore.git
synced 2026-12-03 15:15:20 -07:00
31 lines
630 B
PHP
31 lines
630 B
PHP
<?php
|
|
include('db.php');
|
|
if ($conn) {
|
|
$vraag = "select id, Naam from Ingredienten";
|
|
if ($result = mysqli_query($conn, $vraag)) {
|
|
echo "<select class=\"selectingredient\" name=\"ingredient\">"?>
|
|
|
|
|
|
|
|
<?php
|
|
while ($row = mysqli_fetch_assoc($result)) {
|
|
?>
|
|
<option value="<?=$row['id']?>">
|
|
<?=$row['Naam']?>
|
|
</option>
|
|
<?php }?>
|
|
|
|
</select>
|
|
<button onclick="removeIngredient(">
|
|
X
|
|
</button>
|
|
<?php
|
|
}
|
|
else
|
|
{
|
|
echo "Geen resultaat";
|
|
}
|
|
|
|
|
|
}
|
|
?>
|