bueno, ojala me puedan ayudar...

http://jony.gratishost.com/page.php
page.php
Código PHP:
<?
// Datos de conexión a la base
$base="db";
$con=mysql_connect(localhost,user,pass);
mysql_select_db($base,$con);
if (!isset($pg))
$pg = 0; // $pg es la pagina actual
$cantidad=10; // cantidad de resultados por página
$inicial = $pg * $cantidad;
$pegar = "SELECT * FROM noticias ORDER BY id DESC LIMIT $inicial,$cantidad";
$cad = mysql_db_query($base,$pegar) or die (mysql_error());
$contar = "SELECT * FROM noticias ORDER BY id DESC";
$contarok= mysql_db_query($base,$contar);
$total_records = mysql_num_rows($contarok);
$pages = intval($total_records / $cantidad);
// Imprimiendo los resultados
while($array = mysql_fetch_array($cad)) {
echo $array['titulo']. "<br>";
}
// Cerramos la conexión a la base
$con=mysql_close($con);
// Creando los enlaces de paginación
echo "<p class=fonty>";
if ($pg != 0) {
$url = $pg - 1;
echo "<a href='$PHP_SELF?pg=".$url."'>« Anterior</a> ";
} else {
echo " ";
}
for ($i = 0; $i <= $pages; $i++) {
if ($i == $pg) {
if ($i == "0") {
echo "<b> 1 </b>";
} else {
$i = $i+1;
echo "<b> ".$i." </b>";
}
} else {
if ($i == "0") {
echo "<a href=$PHP_SELF?pg=".$i.">1</a> ";
} else {
echo "<a href='$PHP_SELF?pg=".$i."'>";
$i = $i+1;
echo $i."</a> ";
}
}
}
if ($pg < $pages) {
$url = $pg + 1;
echo "<a href='$PHP_SELF?pg=".$url."'>Siguiente »</a>";
} else {
echo " ";
}
echo "</p>";
?>
http://jony.gratishost.com/actualidad.php
actualidad.php
Código PHP:
<?php
include("conexion.php");
if(!isset($ver)){
$sql = "SELECT * FROM noticias ORDER BY id DESC LIMIT 0,4";
$conectar = mysql_query($sql);
while ($row = mysql_fetch_array($conectar)) {
echo"<table cellspacing=\"0\" cellpadding=\"0\" width=\"460\" border=\"0\" align=\"center\">
<tr valign=\"top\">
<td valign=\"top\" align=\"left\">
<table align=\"left\">
<tr>
<td width=\"78\"> <img height=\"61\" src='".$row["imagen"]."' width=\"78\" border=\"0\" alt=\"noticias\" />
</td>
</tr>
</table>
<a href='$PHP_SELF?ver=n&id=".$row["id"]."'><font face=\"tahoma, Arial, verdana\" size=\"2\" color=\"#000000\"><b>".$row["titulo"]."</b></font><font color=\"#000000\"></font></a>
<font face=\"tahoma, Arial, verdana\" size=\"2\" color=\"#000000\">Leido: <b>".$row["lec"]."</b></font><br />
<font face=\"tahoma, Arial, verdana\" size=\"2\" color=\"#000000\">
".$row["noticia"]."
</font>
</td>
</tr>
</table>";
echo"<br />";
}
} elseif($ver=="n"){
$result = mysql_query("SELECT * FROM noticias WHERE id='$id'");
if($row = mysql_fetch_array($result))
$id=$row["id"];
$lec=$row["lec"];
$lec++;
$update = "UPDATE noticias SET lec='$lec' WHERE id='$id' LIMIT 1";
$updatesql = mysql_query($update);
echo "<table width='500' border='0' cellspacing='2' cellpadding='1' align='center'>
<tr valign='top'>
<td><b><font color='#999900' face='tahoma, Arial, verdana' size='2'>".$row["titulo"]."</font></b></td>
<td width='150'><font color='#000000' face='tahoma, Arial, verdana' size='1'>Fecha:
<b>".$row["fecha"]."</b></font></td>
</tr>
</table>
<table width='500' border='0' cellspacing='2' cellpadding='1' align='center'>
<tr>
<td><font color='#000000' face='tahoma, Arial, verdana' size='1'>
".$row["noticia2"]."</font></td>
</tr>
</table>";
} else { echo "Has accesado incorrectamente a esta página."; }
?>
"el que pregunta aprende"
saludos