Adet kadar seçenek çoğaltma
Merhaba arkadaşlar bir formum var
Lütfen adet seçiniz kısmında adet değeri neyse altta çıkan marka seçin ve renk numara seçeneklerinin adet değeri kadar çoğalmasını istiyorum
<form action="" method="POST">
<label>Lütfen Adet Seçin:</label>
<div class="row">
<?php
$query = $db->query("SELECT * FROM adetler", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach($query as $row){
?>
<div class="col-md-6">
<div class="form-group">
<div class="adetler">
<input type="radio" name="adet[]" required="" value="<?=$row['adet']?>" class="kampanya1">
<label for="mark1"><?=$row['aciklama']?></label>
</div>
</div>
</div>
<?php } } ?>
</div>
<div id="list1">
<div class="row mt-4">
<div class="col-md-12">
<label>Marka Seçimi</label>
</div>
</div>
<div class="row mt-4">
<div class="col-md-3">
<div class="form-group">
<img src="images/marka-images/2410128372359362172736329adidas-logo.jpg" class="secilmedi img-fluid cursorum">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<img src="images/marka-images/4281233357223312943634707puma-logo.jpg" class="secilmedi img-fluid cursorum">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<img src="images/marka-images/3258448732251772609749046nike-logo.jpg" class="secilmedi img-fluid cursorum">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<img src="images/marka-images/3631421537363873025722529salomon.jpg" class="secilmedi img-fluid cursorum">
</div>
</div>
</div>
</div>
<div >
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Ayakkabı Renk Seçimi</label>
<select name="renk" class="form-control">
<?php
$query = $db->query("SELECT * FROM renkler", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach($query as $row){
?>
<option value="<?=$row['renk']?>"><?=$row['renk']?></option>
<?php }} ?>
</select>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label>Ayakkabı Numara Seçimi</label>
<select name="numara" class="form-control">
<?php
$query = $db->query("SELECT * FROM numaralar", PDO::FETCH_ASSOC);
if($query->rowCount()){
foreach($query as $row){
?>
<option value="<?=$row['numara']?>"><?=$row['numara']?></option>
<?php }} ?>
</select>
</div>
</div>
</div>
</div>
</form>