I'm an Intermediate Programmer, and I'm in an Impasse, I need to display some items and what I need to fill out a prefect template. Let's explain the Logic okay?
In My Table (I'll use examples ok?) ITEMS, you can add a maximum of 20 ITEMS (Up to, and all ok.).
Let's say I have 12 rows in the ITEM table so [id]1[tipo_item]1
. In other words, from ID1
I have 12 items. To complete the limit of 20 missing 8, correct?
Now I need to display like this:
Items: (id is hidden does not need to show) (ie do not need to pull the variable $ id.)
[tipo1] [tipo1] [tipo1] [tipo1]
[tipo1] [tipo1] [tipo1] [tipo1]
[tipo1] [tipo1] [tipo1] [tipo1]
(now comes the problem) the remaining 8 "voids" needed to show it
[Vazio] [Vazio] [Vazio] [Vazio]
[Vazio] [Vazio] [Vazio] [Vazio]
I need the code to show all grid items, in a total amount per page that I select. but I need it to do an account type
20 - $quantidade de linhas
(in the case left over 8) (or an empty space)