duanchu0031
2014-02-11 12:46while循环选择选项继续循环[关闭]
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>
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- 新手,压根不知咋会事,擦了好久也没发现问题,希望大佬解答,急!!!!
- c语言
- 2个回答
- C语言项目,怎么都调不出来,求修改,详细说明或者把改好的代码发出来,谢谢!
- c语言
- 1个回答
- while循环选择选项继续循环[关闭]
- php
- 3个回答
- 一个while循环中的jQuery下拉列表
- html-select
- php
- jquery
- 1个回答
- 如何激活循环选项卡PHP
- tabs
- loops
- html
- php
- css
- 1个回答
换一换