Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Cadastro Clientes</title>
- </head>
- <body>
- <?php
- include "Clientes.php";
- $cliente = new Clientes();
- $dados = $cliente->listar();
- ?>
- <table>
- <tr>
- <td>Id</td>
- <td>Nome</td>
- <td>Data Nascimento</td>
- <td>Opções</td>
- </tr>
- <?php
- while ($row = $dados->fetch_assoc()) {
- //printf ("%s (%s)\n", $row["idCliente"], $row["nome"]);
- $idCliente = $row["idCliente"];
- $nome = $row["nome"];
- $dataNasc = $row["dataNascimento"];
- ?>
- <tr>
- <td><?php echo $idCliente; ?></td>
- <td><?php echo $nome; ?></td>
- <td><?php echo $dataNasc; ?></td>
- <td><a href="editarCliente.php?idCliente=<?php echo $idCliente; ?>">Editar</a> - <td><a href="excluirCliente.php?idCliente=<?php echo $idCliente; ?>">Excluir</a></td>
- </tr>
- <?php
- }
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement