Tabela MYSQLI
Oque Posso Fazer Quando Chegar 10 usuarios no Banco de Dados Mudar de Pagina
TABELA
<div class="container theme-showcase" role="main">
<div class="page-header">
<h1>Lista de Vips</h1>
</div>
<div class="row">
<div class="col-md-12">
<table class="table">
<thead>
<tr>
<th class="text-center">ID</th>
<th class="text-center">Nome</th>
<th class="text-center">Tipo do VIP</th>
<th class="text-center">Pagamento</th>
<th class="text-center">Ativado</th>
<th class="text-center">Vencimento</th>
</tr>
</thead>
<tbody>
<?php while($row_usuarios = mysqli_fetch_assoc($resultado_usuarios)){?>
<tr>
<td class="text-center"><?php echo $row_usuarios["id"]; ?></td>
<td class="text-center"><?php echo $row_usuarios["nome"]; ?></td>
<td class="text-center">
<?php $tipovip = $row_usuarios["tipovip"];
$result_tipovip = "SELECT * FROM tipos_vip WHERE id = '$tipovip' LIMIT 1";
$resultado_tipovip = mysqli_query($conn, $result_tipovip);
$row_tipovip = mysqli_fetch_assoc($resultado_tipovip);
echo $row_tipovip['nome'];
?>
</td>
<td class="text-center">
<?php $pagamento = $row_usuarios["pagamento"];
$result_pagamento = "SELECT * FROM pagamentos_vip WHERE id = '$pagamento' LIMIT 1";
$resultado_pagamento = mysqli_query($conn, $result_pagamento);
$row_pagamento = mysqli_fetch_assoc($resultado_pagamento);
echo $row_pagamento['nome'];
?>
</td>
<td class="text-center"><?php echo date('d/m/Y H:i:s',strtotime($row_usuarios["ativado"])); ?></td>
<td class="text-center"><?php echo date('d/m/Y H:i:s',strtotime($row_usuarios["vencimento"])); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
Paginas
<div class="container">
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Voltar</a></li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">Proxima</a></li>
</ul>
</nav>
</div>Discussão (0)
Carregando comentários...