[eluser]yannyannyann[/eluser]
But I still don't understand how I could do what I want:
- I have table in my database that contains let's say 20 entries.
- I want to display in my view, only 8 thumbnails.
- When you click on previous / next links you can see the next / previous 8 thumbnails.
So I have my PHP function that does the SQL query.
Code:
getCollectionPreviews( $offset, $per_page)
// Example getCollectionPreviews( 1, 8) will show the first packet of 8 elements
I create a JSON object from this.
Then I should be able to read my JSON in my view with jQuery, but how ?
Also,
How do I call my PHP function to load the next or previous 8 thumbnails ? (click on link NEXT / PREVIOUS)