Ti faccio un esempio facendo visualizzare dei numeri, però il concetto è quello, sempre che ti vada bene :
Codice PHP:
<?php
$numToShow = 2;
$arr = array(1,2,3,4,5,6,7,8,9,10);
$start = (isset($_GET['start'])) ? (int)$_GET['start'] : 0;
/*Una volta che recuperi il valore di $_GET['start']
fai la query:
"SELECT * FROM tabella LIMIT ".$start.",".$numToShow.";"*/
for($i=$start,$j=0; $j < $numToShow; $j++,$i++)
{
echo "Numero : ".$arr[$i]."
";
}
if($start-$numToShow >= 0)
{
?>
[url="pag.php?start=<?=($start-$numToShow);?>"]precedente[/url]
<?php
}
if(($start+$numToShow) < count($arr))
{
$next = $start+$numToShow;
?>
<a href="pag.php?start=<?=($start+$numToShow);?>" />
successiva</a>
<?php
}
?>
p.s. cmq bisogna ringraziare Ken84 per qsta soluzione