OK, I have a database with images stored in it. Right now it has 13 images. That database number will grow/shrink over time.
What I want to do is to display them in a row of 5, row of 4, row of 5, row of 4,.... pattern. I know the last row will probably not meet the criteria, but that is OK.
I am having a brain freeze as to how to do this dynamically in PHP. I know I need some loops, just cannot figure it out so.... help please