for (let index = 0; index < <? php echo $w_hours?>; index++) {
table += "<td>" + '<? php $a=0; echo $tab [0]->sch [0] [index] ;>' +"</td>";
}
How to use index
here, I have also tried using $a=0
and here global $a
and then instead of using index
I used $a++
, but still it doesn't increment.