Page 1 of 1

[PHP] Cut of table when reaches "x" colums

Posted: Thu Nov 02, 2006 12:28 pm
by thiscatis
Hi,

I have no idea how to start on this one, so i hope someone can point me in the right directions.
Basically, what I'd like to have is an overview of some content of in my database.
I want to export that in a html table, but for layout issues I'd like it to loop it in the table,
but starts a new row of the when the table get 3 columns..

So information in database for example:
category 1,category 2,category 3,category 4,...

and the table would be something like this

Code: Select all

+--------+--------+--------+
+ cat1   | cat2   | cat3   |
+--------+--------+--------+
+ cat4   + ....   + .....  +
+--------+--------+--------+
and so on until the loop is finished

Posted: Thu Nov 02, 2006 12:30 pm
by John Cartwright
First listing from our Useful posts