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
}
?>
In a word - yes. PHP will continue the parsing of the PHP code in the next <?php
tag without an issue.