我有一段html代码,其中有一个下拉菜单,它的所有值都来自于读取数据库( Django)上的列。下拉菜单有几个冗余,我想删除这些重复的选项。 Here's the html code part that reads from the database: And here's the script that should eliminate the duplicates
下面是数据库中的“房间”表:
Room Building Capacity
CW5/10 Canalside West 50
CW4/09 Canalside West 40
CW2/08 Canalside West 40
CW4/10 Canalside West 25
CE1/03 Canalside East 40
如果可能的话,我想做的是创建2个下拉菜单。其中一
我是PHP新手,我正在尝试根据另一个下拉菜单值填充下拉菜单
//Here's the first drop down menu
<select name="comp_type" class="form-control" >
<option disabled selected value>Select</option>
<option value="Controller" >Controller</option>
<option value="