Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Otávio Peixoto

Paginar este código

Recommended Posts

eu queria paginar meu script, mas não consegui com nenhum tutorial que encontrei aqui,alguem pode inserir no codigo abaixo pra mim, de modo que aparessa 10 posts por pagina

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FutShow</title>
<link rel="shortcut icon" href="imagens/icone.png" />
<link rel="stylesheet" type="text/css"  href="css/tmenu.css" />
<link rel="stylesheet" type="text/css"  href="css/fundo_topo.css" />
<link rel="stylesheet" type="text/css"  href="css/footer.css" />
<link rel="stylesheet" type="text/css"  href="css/meio.css" />
<style type="text/css">
.texto {
	color: #000;
}
#colEsq #sepEsqcolCentral #colDir #sepcolCentralDir #colCentral h3 {
	color: #000;
}
#colEsq #sepEsqcolCentral #colDir #sepcolCentralDir #colCentral h1 {
	color: #090;
}
#cabeçalho table tr td {
	font-size: 36px;
	color: #009900;
	font-weight: bold;
}
#conteudoEsq h3 {
	font-weight: bold;
	color: #090;
	font-size: 24px;
}
a:link {
	color: #090;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #090;
}
a:hover {
	text-decoration: underline;
	color: #0C3;
}
a:active {
	text-decoration: none;
	color: #0C3;
}
</style>
</head>

<body>
<div id="cabeçalho">
  <table width="80" height="80" border="0" align="left" cellpadding="0" cellspacing="0">
    <tr>
      <td>FutShow</td>
    </tr>
  </table>
</div>

<nav>
  <ul class="menu">
		<li><a href="index.php">Inicio</a></li>
		<li><a href="contato.php">Contato</a></li>
		<li><a href="sobre.php">Sobre</a></li>
		               
</ul>
</nav>
<div id="fmenu">
  <div align="right">
    <table width="224" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25"><div id="fmenu2">
      <div align="right">
        <input name="pesquisar2" type="text" value="Pesquisar no Site" />
        <input name="pesquisar" type="button" value="Pesquisar" />
        <form id="form1" name="form1" method="post" action="pesquisar.php">
        </form>
      </div>
    </div></td>
  </tr>
</table>
  </div>
</div>
<p><center>
<a href="/time.php?nome=atleticomg"><img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/atl_mg_45x45.png" alt="Atlético MG" width="30" height="30" longdesc="/time/atleticomg" /></a> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2013/05/10/AtleticoPR_SEM-ESTRELAS-cor-final.png_45.png" alt="Atlético PR" width="30" height="30" longdesc="/time/atleticomg" />  <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/12/02/bahia_45x45.png" alt="Bahia" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/botafogo_45x45.png" alt="Botafogo" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/corinthians_45x45.png" alt="Corinthians" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/12/02/coritiba_45x45.png" alt="Coritiba" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2011/01/04/criciuma45.png" alt="Criciúma" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/cruzeiro_45x45.png" alt="Cruzeiro" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/flamengo_45x45.png" alt="Flamengo" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2011/11/28/_escudo_flu_45.png" alt="Fluminense" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/goias_45x45.png" alt="Goias" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/gremio_45x45.png" alt="Grêmio" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/internacional_45x45.png" alt="Inter < Mazembe" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2012/06/14/nautico45.png" alt="Nautico" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2012/10/17/pontepreta45.png" alt="Ponte Preta" width="30" height="30" longdesc="/time/atleticomg" />  <img src="http://s.glbimg.com/es/sde/f/organizacoes/2012/06/14/portuguesa45.png" alt="Portuguesa" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/santos_45x45.png" alt="Santos" width="30" height="30" longdesc="/time/atleticomg" />  <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/sao_paulo_45x45.png" alt="São Paulo" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/vasco_45x45.png" alt="Vasco" width="30" height="30" longdesc="/time/atleticomg" /> <img src="http://s.glbimg.com/es/sde/f/organizacoes/2010/11/19/vitoria_45x45.png" alt="Vitoria" width="30" height="30" longdesc="/time/atleticomg" />
</center></p>
<div id="tirinha"></div>
<div id="colEsq">
  <div id="sepEsqcolCentral">
    <div id="colDir">
      <div id="sepcolCentralDir">
        <div id="colCentral">
      <p><?php
include("conn/listarusuarios.php");
$result=mysql_query("SELECT * FROM `artigos` ORDER BY `id` DESC");
echo "<table width=600 cellspacing=1\ border=\"0\">";
echo "<tr>";
echo "<td></td>";
echo "</tr>";
while($row=mysql_fetch_array($result)){
echo "<tr>";
echo "<td rowspan='3'><a href=\"artigo.php?titulo=".$row['titulo']."\"><img src='".$row['icone']."' width='100' height='100'></a></td>";
echo "<td><h1>".$row['titulo']."</h1>
</td>";
echo "<tr>";
echo "<td><h6>Autor:".$row['autor']."   Data:".$row['data']."</h6></td>";
echo "</tr>";
echo "</tr>";
echo "<tr>";
echo "<td>";
echo "<a href=\"artigo.php?titulo=".$row['titulo']."\">Ler Artigo</a>"; 
echo "</td>";
echo "</tr>";
} 

?></p>
      <p> </p>
        </div>
<p></p>
  </div>
   </div>
     </div>
</div>
</body>
</html>

Agradeço des de ja

Compartilhar este post


Link para o post
Compartilhar em outros sites

Quais e como foram as suas tentativas? Fazer pra você não é ajudar, neste caso é mais conveniente você contratar um freela.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Da uma olhada aqui fera, uma boa lida e verá que o código está mastigadinho e fácil de implementar!

http://www.webmaster.pt/paginacao-avancada-com-php-6086.html

 

Abrço.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.