Path : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/Anees/Select Box/ |
Current < : /hermes/bosweb/b1705/trinix19.ipage.com/Backup/Anees/Select Box/get_city.php |
<?php include('dbconfig.php'); if($_POST['id']) { $id=$_POST['id']; $query=mysql_query("SELECT * FROM tbl_city WHERE state_id='$id'"); ?> <option selected="selected">Select City :</option><?php while($row=mysql_fetch_assoc($query)) { ?> <option value="<?php echo $row['city_id']; ?>"><?php echo $row['city_name']; ?></option> <?php } } ?>