I use the mod function to style the third <li> in each row! I’m looking for a way to fill up the last row with default images in case there are not enough records in the database to fill up the row.
so, from what I understand…*you’re wanting at LEAST x images in the last row.
So, if x = 10 and your query only has 8, you need 2 images to fill up the unused space, correct?
If that’s right, I’m confused as to what the mod function has to do with this.
For the example above, I used 2 variables, intRowCount (which is your query’s RECORDCOUNT attribute) and intCellsPerRow, which defines which index of the LI gets styled. If there are “empty” rows afterwards, they are filled with the LI “empty”.