ppeasy/public/dropprovabis.php

16 lines
453 B
PHP

<?php
//include('include/headscript.php'); ?>
<?php
$country_id = mysqli_real_escape_string($_POST['country_id']);
if($country_id!='')
{
$states_result = $conn->query('select * from modelarticle where idarticletype='.$country_id.'');
$options = "<option value=''>Select State</option>";
while($row = $states_result->fetch_assoc()) {
$options .= "<option value='".$row['idmodelarticle']."'>".$row['namemodelarticle']."</option>";
}
echo $options;
}?>