$consulta = "SELECT * FROM 'teste' WHERE id='1' ";
<div class="box-header">
<h2><?php while($d = $con->fetch_array()){ ?>
<?php echo $d["cnpj_cpf_tab_clientes"];?>
<?php echo $d["telefone_tab_clientes"];?>
<?php } ?></h2>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead><tr>
<th>CNPJ</th>
<th>Telefone</th>
</tr>
</thead>
<tbody>
<?php while($dado = $con->fetch_array()){ ?>
<tr>
<td><?php echo $dado["cnpj_cpf_tab_clientes"];?></td>
<td><?php echo $dado["telefone_tab_clientes"];?></td>
</tr>
<?php } ?>
</tbody>
</table>
<h2>Endereço</h2>
</div>
Why does the second while($dado..)
return no results?