1

As the title says, I've been searching the whole internet for a good solution using simple javascript/jquery for this kind of pagination.

I've got this:

<div class="gallery">
<?php
    if (mysql_numrows($sqlstr) != 0) {
        while ($row = mysql_fetch_array($sqlstr)) {
?>
     <a id="<?php echo $row['Ano']; ?>" class="thumbsObras" href="">
        <img src="<?php echo "includes/autores/thumbs/".$row['path']; ?>" width="225" height="225" />
     </a>
<?php
        }
    }
?>
</div>

Basically, the gallery is the container of the repeat zone with the data from the DB. It creates several images.

I wish to have a button that says "see more 12 results" and pressing it automatically displays the next 12 results, so it would have 24 results on the screen. Then if the user wants even more, there's the button again (like App Store in the iPhone), and so on. iIs that possible?

4

0 回答 0