Hi,
I need to make a really strange loop..
I am attempting to generate html output which is a table with numbers in it..
I have a variable which I set to be how many rows the table will be, which i call $rows.
The columns will ALWAYS be the same however, which is 3 columns wide..I need to put numbers in the following fashion.
1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16 17 18
This is based on when i set $rows to 6..but i can't figure out math problem that will make my table look like this. Some kind of for loop (maybe a nest one) is needed i'm sure. But when I change $rows it will need to go on however... I.E.
19 20 21
22 23 24
25 26 27
....etc
any ideas?