-2
I wanted to create a dropdown, but 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>
I don’t understand why you’re getting negative votes when you actually helped me with the problem.
– Daniel Ribeiro
My friend, it’s complicated, I can’t explain the other negative vote, but I can explain my, for the same reason that the question was closed as
Esse problema não pode ser reproduzido, ou é um erro de digitação.
, Even though I’m right, I believe that answering these kinds of questions ends up encouraging questions of the same kind.... It may have been an exaggeration on my part, but it’s my vision...– MarceloBoni
I also believe that your reply would be better accepted if it were only a comment, and not an answer. This is the kind of question that the biggest problem is the question itself, not the answer, but ends up going "on the tram".
– MarceloBoni