Nasıl bir foreach döngüsü ile tutucu kutulara doldurmak için?

0 Cevap php

PHP kullanarak (bu ihtiyaç eğer at, jquery):

Ben 30 kutuları ile bu sayfa var. Bu daha az ya da asla.

Bu 30 kutuları, bazıları "kutu özel" veri ile dolu olacak.

Nasıl diyebilirim:

If there are 20 records on the foreach to loop trought, then, 20 boxes will contain data, and the rest will stay with the placeholders. If there are 10 records on the foreach, then 20 boxes will stay with the placeholdes.

How can something like this be achieved ? Can anyone provide me a good example for doing so?

Thanks a lot, MEM

0 Cevap