Forum Moderators: open

Message Too Old, No Replies

Size of tables

Not efficient?

         

wonderboy

2:32 pm on Aug 28, 2004 (gmt 0)

10+ Year Member



Hi,

I am pulling loads of variables from a databse and want them to be displayed on my stats page, the way I am doing this is by a simple loop that adds a new table until all the required data is there... However, tables make for large file sizes, and I want my pages to load fast, especially on my homepage. Is there any way to make tables in general so that they don't produce such large file sizes, and any advice on any area of this topic?

Thanks,

W.

dtmuk

3:44 pm on Aug 28, 2004 (gmt 0)

10+ Year Member



The file size is proportional to the ammount of characters in the actual html / php page itself so i don't know of a way like you sound to be doing it...

I think what you need to do is use rows and columns in one table instead of having multiple tables:

eg.

<table>
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
</tr>
</table>

then use a <tr> for another row...

If you know about simple tables then i have misunderstood what you are doing...

DTM