HI everyone i have a problem this is the result
This is my codes.
$iqry2 = $mysqli->prepare("SELECT itemname,unitmeasure FROM table_item");
$iqry2->execute();
$iqry2->bind_result($itemname,$unitmeasure);
$iqry2->store_result();
<div class="form-group ">
<label for="itemname" class="control-label col-lg-2">Item Name</label>
<div class="col-lg-10">
<select name="iname" class="form-control">
<?php
while ($iqry2->fetch()){
echo "<option>$itemname</option>";
?>
</select>
</div>
</div>
<select name="unit" class="form-control">
<?php
echo "<option>$brandname</option>";
}
?>
</select>
</div>
</div>