include ("include/conecta.php");
$numpage = $_REQUEST['pg'];
$numreg = 15; // Quantos registros por página vai ser mostrado
if (!isset($pg)) {
$pg = $numpage;
}
$inicial = $pg * $numreg;
$id=$_REQUEST['id'];
$sql = mysql_query("SELECT * FROM noticias ORDER BY id DESC LIMIT $inicial, $numreg");
$sql_conta = mysql_query("SELECT * FROM noticias");
$quantreg = mysql_num_rows($sql_conta);
?>
|
Últimas Notícias...
while ($aux = mysql_fetch_array($sql))
{
echo " ".$aux['data']."
".$aux['titulo']." ";
}
?>
|
include ("paginacao.php"); ?> |
|