<div>Choose a City from this list:</div>
<input list="city" name="city" type="text"/>
<datalist id="city">
<?php // please give connection to your database first
$query = mysqli_query ( $conn , " select * from city " ); // getting all city from table
while( $row = mysqli_fetch_assoc ( $query ) ) // get all city one by one
{
echo '<option value= ' . $row["city"] . ' >' ;
}
?>
</datalist>
// just use this code you will get wonderfull . Nice too cee you here
Type your Comment below and click to send comment