Código PHP:
<?php
include("conecta.php");
$inicio = $_REQUEST['pagina'];
if($inicio) {
$inicio = ($pagina - 1) * 2;
}
else {
$inicio = 0;
$pagina = 1;
}
?>
<?php
include("conecta.php");
$parcial = mysql_query("select * from noticias",$conexion);
$numeroregistro = mysql_num_rows($parcial);
$registro = mysql_query("select * from noticias order by id desc limit $inicio ,2");
$total = ceil($numeroregistro / 2);
if ($numeroregistro) {
while ($reg = mysql_fetch_array($registro)) {
echo $reg['autor']";
echo $reg['titulo']";
echo $reg['contenido'];
}
}