Example #1
0
<?php

require_once 'head.php';
require_once 'conexao.php';
require_once 'ModelUser.php';
$listar = $_GET['listar'];
$usuario = new ModelUser($conexao);
if (isset($listar) && $listar == 's') {
    echo "<table class='table'>\n        <th>NOME</th>\n        <th>SENHA</th>";
    foreach ($usuario->listagem() as $detalhe) {
        echo '<tr>';
        echo '<td><a href="buscaUser.php?nomeUser='******'nome'] . '">' . $detalhe['nome'] . '</a></td>';
        echo '<td>' . $detalhe['senha'] . '</td>';
        echo '</tr>';
    }
}