<?php include 'cls/clienteClass.php'; include 'cls/conexaoClass.php'; $id = $_GET["cod"]; $cliente = new clienteClass(); $cliente->getOne($id); ?> <br> <table class="table table-hover"> <?php $result = $cliente->getConsulta(); if ($linha = $result->fetch_assoc()) { ?> <tr> <td>Código</td> <td><?php echo $linha['idCliente']; ?> </td> </tr> <tr> <td>Nome</td> <td><?php echo $linha['nome']; ?> </td> </tr> <tr> <td>Endereço</td> <td><?php
<?php include 'cls/clienteClass.php'; include 'cls/conexaoClass.php'; $cliente = new clienteClass(); $cliente->mostrar(); ?> <br> <a class="btn btn-default"href="?m=ic">Inserir um novo Cliente</a> <br> <br> <table class="table table-hover"> <tr> <td>Código</td> <td>Nome</td> <td>E-mail</td> <td>Telefone</td> <td>Endereço</td> <td></td> </tr> <?php $result = $cliente->getConsulta(); while ($linha = $result->fetch_assoc()) { ?> <tr> <?php $id = $linha['idCliente']; ?> <td><?php echo $linha['idCliente']; ?>