Skip to content

Instantly share code, notes, and snippets.

@vitqst
Created September 12, 2015 11:54
Show Gist options
  • Save vitqst/61600b978b13efbc6bfa to your computer and use it in GitHub Desktop.
Save vitqst/61600b978b13efbc6bfa to your computer and use it in GitHub Desktop.
<?php
include_once 'dbconfig.php';
if($_POST['type_top'])
{
$type_top=$_POST['type_top'];
$query = "SELECT * FROM type_child WHERE type_top='$type_top'" ;
$result = mysqli_query($connection,$query) ;
?>
<option selected="selected">Select State :</option>
<?php
while($row = mysqli_fetch_array($result))
{
?>
<option value="<?php echo $row['type_child']; ?>">
<?php
echo $row['type_child_name'];
?>
</option>
<?php
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment