【发布时间】:2016-06-29 02:27:33
【问题描述】:
数据库中的数据已经正常。我的问题是,它在选项列表中没有出现,只是空白,但是当我将光标放在选项列表上时,它显示有数据
<select style="width: 100px" id="txteventroomtype" onchange="selectfunctionroom(this.value);">
<?php
$getroomtype = "select category from tblroomcat";
$otherroomtyperesult = mysql_query($getroomtype);
while($otherroomtype = mysql_fetch_array($otherroomtyperesult))
{ echo "<option value='" . $otherroomtype[0] . "'></option>"; }
?>
</select>
【问题讨论】: