I have a php/mysql list, where I can display lots of thumbnails.
My problem is that there are too many images to display in one page. I would like to divide it so that I can get some page links or something at the bottom?
Like: 1,2,3,4,5,6,7,8 or next and prev...
Here is the current code:
<?php
if ($db_found) {
$SQL = "SELECT * FROM myTable";
$result = mysql_query($SQL);
while ($db_field = mysql_fetch_assoc($result)) {
echo '<li>';
echo '<div class="thumb"><img src="images/thumbnails/'.$db_field['image'].'" alt="" /></a></div>';
echo '</li>';
}
mysql_close($db_handle);
}
?>
How can I add some page links here?