Beispiel #1
0
<table border = '1pt' style=" border-color: white" width="900px" >
          <tr>
              <th>Id</th>
              <th>Nome</th>
              <th>Sobre nome</th>
              <th>Tipo</th>
              <th>Email</th>
              <th>Telefone</th>
              <th></th>

          </tr>
      <?php 
$bd = new BancoDeDados();
$agendaDAO = new agendaDAO($bd);
$listaUsuario = $agendaDAO->leUsuario();
foreach ($listaUsuario as $usuario) {
    echo '<tr>';
    echo '<td>' . $usuario->getId() . '</td>';
    echo '<td>' . $usuario->getNome() . '</td>';
    echo '<td>' . $usuario->getSobrenome() . '</td>';
    echo '<td>' . $usuario->getOpcao() . '</td>';
    echo '<td>' . $usuario->getEmail() . '</td>';
    echo '<td>' . $usuario->getTelefone() . '</td>';
    echo '<td><img src="' . $usuario->getImagem() . '" height="150" width="150"></td>';
    echo '</tr>';
}
$bd->fecha();
?>