How do I echo values that are submitted from a form on another page (which they are submitted into the database) into an HTML tag as options?
This is my latest code and I'm still stuck here. When I clicked on the drop-down list, it still shows nothing.
<select name="comName" id="comName" class="form-control" required>
<?php include('db_company.php');
$query_option = "SELECT * FROM company";
$result = mysqli_query($query_option);
while($row = mysqli_fetch_array($result)) {
echo "<option value='{$row['comName']}'>{$row['comName']}</option>";
}
?>
</select>