Currently I have a selection field where you have several options and only one that the user chose, except that I wanted to look for the one that he chose automatically by the database. I use the code:
<option <?php if ($company == 1 ) echo 'selected' ; ?>value="1">Apple</option>
Only I have to put all the options. So I would like you to automatically select the chosen option without needing selected
, is it possible?