Código PHP:
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from archivos order by id desc LIMIT $RegistrosAEmpezar, $RegistrosAMostrar",$con) or die (mysql_error());
if (mysql_num_rows($result)) {
while ($qry = mysql_fetch_array($result)) {?>
<?php}
}
exit;
?>
<div id="x">
</div>