Dynamic create rows and colum with the help of PHP and HTML

前端 未结 5 1697
面向向阳花
面向向阳花 2021-01-01 02:17

I want to create dynamic rows and column with the help of PHP and HTML but I am little confused about this code so some help is definitely appreciated.

&l         


        
5条回答
  •  不知归路
    2021-01-01 02:23

    Here's a better way. This one uses Bootstrap syntax, but you can easily change it to a table format or anything else. Logic is the same. Remember to update the $items array name with your own where appropriate.

    $item) { ?>
    = 0 ; $i--) { ?>
     
    $cols ) { $tdCount = 1; } } ?>

    It will output:

    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
     

提交回复
热议问题