Is this possible to do? For example the bracket that close the while is in different php tags of the ones that start the while loop.
while ($row = $result->fetch_assoc()) {
$code = $row["VAT"];
?>
<option name="Client VAT" value="<?php echo($code); ?>"><?php echo $code; ?></option>
<?php
}
?>