Parse error: syntax error, unexpected '}' [closed]

-1

I wanted to create a dropdown, but when doing the following error appears.

  

Parse error: syntax error, unexpected '}', expecting end of file in line 96

<div class="form-group">
    <label for="user">User:</label>
    <select class="form-control" name="user" id="user">

        <option value = "0">No user</option>
        <?php>
            $q = "SELECT id FROM users ORDER BY first ASC";
            $r = mysqli_query($dbc, $q);

            while ($user_list= mysqli_fetch_assoc($r)) {
                $user_data = data_user($dbc, $user_list['id']);
                ?>
                <option value="0"><?php echo $user_data['fullname']; ?></option>

                <?php 
            } \LINHA 96
        ?>
    </select>
</div>
    
asked by anonymous 02.02.2018 / 17:26

1 answer

-1

When you are opening the PHP tag you have put the character > , remove it and your error will possibly disappear.

<?php
    $q = "SELECT id FROM users ORDER BY first ASC";
    $r = mysqli_query($dbc, $q);

    while ($user_list= mysqli_fetch_assoc($r)) {
        $user_data = data_user($dbc, $user_list['id']);
 ?>
 <option value="0"><?php echo $user_data['fullname']; ?></option>
    
02.02.2018 / 17:29