php - Div auto-increment page for gallery -


i want create script auto-increment div number every time reach limit 16 pics. "next" - "prev" controls.

example: if have 16 pics in database, these remain in page n.1, if i've 20 pics: 16 pics in page n.1 , 4 pics in page n.2 ...etc

the number of page depends number of pics in database sql.

javascript or php?

thank's!

what looking called pagination.

https://phpacademy.org/course/pagination


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -