I'm creating tables with 4 rows and 2 columns using this for loop:
$row = 4; //Dynamic number for rows
$col = 2; // Dynamic number for columns
for($i=0;$i<$row;$i++){
for($j=0;$j<$col;$j++){
echo $i+$j.'</br>';
}
}
However, I cannot seem to get it to output 1-8 in numbers sequentially.
Would be grateful is someone knows how to do this?
Cheers
K