Código PHP:
$NroRegistros=mysql_num_rows(mysql_query("SELECT * FROM news-web",$link));
$PagAnt=$PagAct-1;
$PagSig=$PagAct+1;
$PagUlt=$NroRegistros/$RegistrosAMostrar;
$Res=$NroRegistros%$RegistrosAMostrar;
if($Res>0) $PagUlt=floor($PagUlt)+1;
echo "<center>";
echo "<table width=\"100%\" border=\"0\"><tr>";
if($PagAct>1)
echo "<td align=\"left\" width=\"80\"><a onclick=\"Pagesnews('$PagAnt')\"><b><< Anterior</b></a></td>";
else{
echo "<td align=\"left\" width=\"80\"> </td>";
}
echo "<td align=\"center\"><b>|</b>";
for($mypages=1;$mypages<=$PagUlt;$mypages++)
{
echo "<a onclick=\"Pagesnews('$mypages')\"> ".$mypages."</a> <b>|</b>";
}
echo "</td>";
if($PagAct<$PagUlt)
echo "<td align=\"right\" width=\"80\"><a onclick=\"Pagesnews('$PagSig')\"><b>Siguiente >></b></a></td>";
else {
echo "<td align=\"right\" width=\"80\"> </td>";
}
echo " </tr></table>";
Espero ke me ayuden pues