[PHP] Creating a table with merged cells

2007-08-23 Thread Phpmanni
Hi I need to represent a sort of map. The map is a rectangular table of size X in widht and Y in height, so that I have X*Y square cells. I need to record in a database some infos for each cell. This is easy, I thought to use a record that is something like (X,Y,MyData), so with two nested loops

Re: [PHP] Creating a table with merged cells

2007-08-23 Thread Wouter van Vliet / Interpotential
You may want to look into the rowspan and colspan attributes of td G'luck! On 23/08/07, Phpmanni [EMAIL PROTECTED] wrote: Hi I need to represent a sort of map. The map is a rectangular table of size X in widht and Y in height, so that I have X*Y square cells. I need to record in a database

Re: [PHP] Creating a table with merged cells

2007-08-23 Thread Phpmanni
Yes, I know I can use colspan and rowspan. Colspan is easy, I have problems when cells are vertically merged... You must build the table from the top and it is not easy to know for each row if they get some piece of cell from the preceding one. And you can have cells from the first to the last

Re: [PHP] Creating a table with merged cells

2007-08-23 Thread Robert Cummings
On Thu, 2007-08-23 at 15:59 +0200, Phpmanni wrote: Hi I need to represent a sort of map. The map is a rectangular table of size X in widht and Y in height, so that I have X*Y square cells. I need to record in a database some infos for each cell. This is easy, I thought to use a record that