0
<?php
include"conectar.php";
/// codigo para fazer leitura do banco de dados
/// incluindo ?php echo $cpf ? entre <> na tabela onde ficará o registro
$query="select nome, cpf from associados ";
$stmt=mysqli_query($con,$query);
if($stmt) {
$today = date("d.m.y");
} else {
mysqli_rollback($con);
echo "Transaction rolled back.<br />";
}
while($row=mysqli_fetch_array($stmt) )
{
$cpf = $row['cpf'];
$nome = $row['nome'];
**$endereco = $row['endereco'];**
}
mysqli_close($con);
?>
onde insiro o resultado da pesquisa
----------------------------------
<tr>
<td> <?php echo $cpf ?> </td>
<td><?php echo $nome ?></td>
<td><?php echo $endereco ?></td></td>
</tr>
DVD thanks and sorry for the lack of attention!
– Flavio Cordas
DVD one more question... which command is missing to read all rows of the database?
– Flavio Cordas
lines , example: more than one registered name. With this code only shows the last registered wanted to read all names.
– Flavio Cordas
Take a look at this link
– Sam
Flávio, do me a favor: it seems that the site gave a bug. Uncheck my reply and mark again please.
– Sam
I already did! Check if it worked!
– Flavio Cordas
Obg! It worked but still got registered -15 in reputation. It has nothing not :D... Rigadão!
– Sam