<select id="user_type" name="user_type">
<option value="0">Select an user type</option>
<?php while($row = $result->fetch_assoc()){ ?>
<option value="<?php echo $row['id']; ?>"><?php echo $row['type']; ?></option>
<?php }?>
</select>
It doesn't swallow the quotes on line 4 and I don't know why..
I have already seen where the error is, the first problem has been that it did not have the require where those variables were, so it could not perform the functions of that code, the second is that within that require file it had a location for what did not load the file correctly and redirected me badly. Thanks for the input :)
Isn't this what you are looking for?
Note that you can also substitute the
id
ytype
for the number of the select to remove the apostrophes.