exec($produkteTabelle);
echo "TABELLE produkte ERSTELLT
";
$createTable = $pdo->exec($produkteBestellung);
echo "TABELLE Bestellung ERSTELLT
";
$lagerbestandProProduktQuery = 'SELECT `name`, lagerbestand, id FROM produkte';
$lagerbestandProProdukt = $pdo->query($lagerbestandProProduktQuery)->fetchAll();
echo "
";
print_r($lagerbestandProProdukt);
echo "";
foreach($lagerbestandProProdukt as $row){
if ($row[1] >= 1){
echo "Von '$row[0]' haben wir aktuell $row[1] (ID: $row[2]).