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
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