Paginação de conteudo
Ai galera peciso colocar um sistema de paginação nesse script:
<?php
include('controle/connect1.php');
$sql = "SELECT * FROM usuarios_clube WHERE id <> 0 ORDER BY id DESC LIMIT 8";
$limite = mysql_query("$sql");
$i=1;
?>
<table width='100%' border='0' cellspacing='5' cellpadding='5'>
<tr>
<?
while($linha=mysql_fetch_assoc($limite)) {
echo '<td>
<table width="50" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50">
<div onClick="abrirPerfil(\''.$linha['id'].'\')" style="cursor:pointer;">
<img src="controle/arquivos/fotos_ouvinte/'.$linha['arquivo'].'" width="50" height="50"/><br>'.$linha['nome'].'</div>
</td>
</tr>
</table>
</td>
';
if( $i%4 == 0 ) {
echo "</tr><tr>";
}
$i++;
}
?>
Alguem poderia me ajudar porfavor ?
Desde já agradeço a atenção te todos :)
Discussão (3)
Carregando comentários...