下面是我的代码,它工作正常。但是,如何从选择更改为说 TEXT 字段以便可以键入,而优先级列在组合框中?
<?php
$con=mysqli_connect("localhost","root","","databasse");
if (mysqli_connect_errno($con)) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
else {
echo "Select Region: ";
echo "<select name='RegName' id='RegName'>";
$query = "SELECT * FROM rtable";
$result = mysqli_query($con,$query);
//echo "<option value='userid'>All</option>";
while($row = mysqli_fetch_array($result)) {
echo "<option value='RegName'>".$row['RegName']." </option>";
}
echo "</select>";
?>