Save folks, I'm trying to populate a table with data coming directly from the database (Mysql). I'm new to the web, I've been able to put together an outline of what I'm trying to do. If anyone can give you some tips, I would be extremely grateful.
<?php
include "conexao.php" ;
$sql = "Select * from usuario";
$resultado = mysqli_query($con,$sql); ?>
<table class="table">
<thead class="thead-dark">
<tr>
<th scope="col">#</th>
<th scope="col">email</th>
<th scope="col">senha</th>
</tr>
</thead>
<?php
while($dados = mysqli_fetch_array($resultado)){
$email = $dados['email'];
$senha = $dados['senha']; ?>
<tbody>
<tr>
<th scope="row"></th>
<td><?php $email ?></td>
<td><?php $senha ?></td>
</tr>
</tbody>
</table>
<?php } ?>
</div>
This is the section about the table and the bank.