<?php
$q=$_POST['category'];
include "../connection/config.php";
$sql="select * from item_details where cid='$q'";
$exe=mysqli_query($con,$sql); 
?>

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<form method="post" action="">
<label for="exampleInputEmail1" class="col-sm-4 control-label">Choose Item</label>
<select class="form-control" name="item" style="width:240px; margin-left:180px; margin-bottom:20px; ">
<option>--Select Item--</option>
<?php
while($fetch=mysqli_fetch_assoc($exe)) { ?>
<option value="<?php echo $fetch['iid'] ?>"> <?php echo $fetch['item_name'] ?> </option>
<?php } ?>
</select>
</form>
</body>
</html>