I'm doing the following query to my database:
$escalacoes = 'SELECT * FROM escalacoes AS e JOIN jogador_rodada AS jr ON e.id_jogador = jr.id_jogador WHERE
e.rodada = ('.$rodada_atual.' - 0) AND jr.rodada = '.$rodada_atual;
$escalacoes = $pdo->query($escalacoes);
$escalacoes->execute();
while ($dadoEscalacao = $escalacoes->fetch(PDO::FETCH_ASSOC)){
echo $dadoEscalacao['rodada'];
echo "<br>";
}
When I print in php the round, it takes the table table value (in this case, in> ). Being that I have a column with that same name in the other table ( 'player_rod' ). Is there a way to do this?