Eccone uno
Codice PHP:<?php
require_once 'dbConfig.php';
$assId = filter_input(INPUT_POST, 'id');
$query = "SELECT id, name FROM subcategories WHERE assId = '$assId' ORDER BY name"; $data = $mysqli->query($query);
while ($subCategories = $data->fetch_assoc()){
echo '<option value="' . $subCategories['id'] . '">' . $subCategories['name'] . '</option>';
}?>


Rispondi quotando