Well, this is what I want to show all teams, from a table, in this table each line corresponds to a team. However, what I wanted to do was show 1 <select>
for each team, that is, if I have 4 teams in BD I want 4 <select>
and each one with 4 teams to choose.
I have a problem that only one of the <select>
is filled in.
Mycodeisasfollows:
<?php$procura3=mysqli_query($link,"SELECT * from $tabelatorneio");
while($contador < 4){
?>
<select>
<?php
while($array3 = mysqli_fetch_array($procura3)){
?>
<option value="<?php echo $array3["nomeequipa"]; ?>">
<?php echo $array3["nomeequipa"]; ?>
</option>
<?php
}
?>
</select>
<?php
$contador ++;
}
?>
What did I do wrong, just to just show 1 select with all the teams?