• 0
Sign in to follow this  
Guest - proteggere -

PaginaÇÃo - Erro

Question

Guest - proteggere -

ALGUÉM SABE COMO INSERIR UMA PAGINAÇÃO AQUI NESSA PÁGINA??

EU TENTEI COM VÁRIOS CÓDIGOS DE PAGINAÇÃO, MAS SEMPRE DÁ ERRO. NÃO CONSIGUO MESCLAR OS DOIS CÓDIGOS.

<html>

<head>

<title>Documento sem t&iacute;tulo</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<STYLE type="text/css">

<!--

BODY {

scrollbar-face-color: #F0FFF0;

scrollbar-track-color: #FFFFFF;

}

-->

</STYLE>

</head>

<body bgColor='#FFFFF0'>

<?php

$conexao=mysql_connect("localhost","agroadm_agroadm","schost123");

mysql_select_db("agroadm_news");

$sql="SELECT * FROM adminnews order by id desc limit 1000";

$resultado=mysql_query($sql); ?>

<?php

while($pegar=mysql_fetch_array($resultado)) { ?>

<table width='100%' border='0' cellspacing='1' bgcolor='#004400' align='center'>

<tr>

<td align="left" bgColor='#FFFFFF'><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">

<?php echo "$pegar[titulo]"; ?>

<a href="noticia_detalhada.php?id=<?php echo "$pegar[id]"; ?>" target=default>

</strong>ler...

</a></font></td>

</tr>

<td width='100%' height='14' bordercolor='#004400'><div align='right'><strong><font color='#FFFFFF' size='1' face='verdana'>Fonte:<?php echo "$pegar[autor]"; ?>&nbsp;-&nbsp;Data:<?php echo "$pegar[data]"; ?></font></strong></div></td>

</tr></table><br>

<?php }

?>

</body>

</html>

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Crei q quando se da a condição "limit" no sql tem q ter inicio e fim... "limit 0,1000"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this