0
Guys I’m starting now in PHP, and I wanted a little help, I need a page to return a message saying that the bank is empty, but I’m not getting, here’s my code:
</head>
<body>
<table class="form-control" border="1">
<tr>
<td>ID</td>
<td>Nome</td>
<td>E-mail</td>
<td>Data de criação</td>
<td>Idade</td>
<td>Cidade</td>
<td>CPF</td>
<td>Menssagem</td>
</tr>
<?php while($dado = $resultado_usuario->fetch_array()){ ?>
<tr>
<td><?php echo $dado["id"]; ?></td>
<td><?php echo $dado["nome"]; ?></td>
<td><?php echo $dado["email"]; ?></td>
<td><?php echo date("d/m/Y", strtotime($dado["created"])); ?></td>
<td><?php echo $dado["idade"]; ?></td>
<td><?php echo $dado["cidade"]; ?></td>
<td><?php echo $dado["cpf"]; ?></td>
<td><?php echo $dado["mensagem"]; ?></td>
</tr>
<?php } ?>
</table><br>
<input type="submit" name="" class="sub2" value="Voltar" onclick="location. href='siteform.html'">
</body>