Image

Imagesourpatchkid wrote in Imagephp

I'm having a problem displaying formatted rows from a table. I'm displaying them with a while statement which displays each record in the table as a row.

example
1 2 3 4 5 6 7 8 9


I need to format it so that it displays like this
1 2 3
4 5 6
7 8 9


here is the source

I've toyed with some for statements, while statements and modulus statements (there's a modulus at the bottom of the source that doesn't work) but none of them work right.

Any ideas?

Thanks in advance.