[SOLVED] Table Class

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
mudvein
Forum Commoner
Posts: 45
Joined: Wed Mar 16, 2005 4:39 pm

[SOLVED] Table Class

Post by mudvein »

I'm assuming that this is the correct place to post this question. Basically I am looking for a class that will allow me to nest other tables within a table.

Right now I have a class that I downloaded (it's called TableBuilder), but the problem with it is that you cannot nest a table within a table...

So, I tried writing my own, but I can't seem to figure out how to make my class allow nesting. My theory to do this would be to do this :

1) Create a multidimentional array that would keep track of every Table/Row/Cell addition

ie (array 1 : Table1=>row1-15=>cell1-15=>table2=>row1-15=>cell1-15=>endcell=>endrow=>endtable=>endcell=>endrow=>endtable)


but how to develop the class to do this is beyond me.. so i guess i'm just looking for a prebuild class that will allow tables to be nested within each other.
mudvein
Forum Commoner
Posts: 45
Joined: Wed Mar 16, 2005 4:39 pm

Post by mudvein »

Post Reply