I've tried some codes to get a dropdown select from my DB, but the output is just always blank and I don't know why
Or maybe an Autocomplete should be a better solution?
<select id="selectbox" name="selectbox"><br>
<?php <br>
$result = "SELECT * FROM colaboradores"; <br>
while($row=mysqli_fetch_array($result,MYSQLI_ASSOC)) {?> <br>
<option value="<?php echo $row['nome'];?>"></option><br>
<?php }?> <br>
</select>
UPDATE
$conexao=mysqli_connect('localhost','root','','bsh');
$result = mysqli_query("SELECT * FROM colaboradores", $conexao);