标记,
<span style="padding-left: 76px">
<span style="padding-left:5px">
<select id="select1" name="requestdbtype" value="<?php echo $type ?>">
<?php
$options = array('DB2' => 'DB2',
'MySQL' => 'MySQL',
'Oracle' => 'Oracle',
'PostgreSQL' => 'PostgreSQL',
'SQLite' => 'SQLite',
'SQL Server' => 'SQL Server',
'Sybase' => 'Sybase');
foreach($options as $value => $type){
echo "<option value='$value'>".$row['requestdbtype']."</option>";
}
?>
</select>
</span>
</span>
我无法显示选项。当前显示的选项应该是 的值$row['requestdbtype']
。但我的显示器只显示当前值作为所有选项,请帮助。