Why not flip the table? It is easier to create rows than create columns? Some psuedo code (for columns):

Code:
for each row_element
  set_text "<tr><td>", Row_Name, "</td>"
  for each user_ID
    set_text original_text & "<td>", Relevant_Data, "</td>"
  next user_ID
  set_text original_text & "<tr>"
next row_element


Noting that "relevant data" has to be extracted from some matrix

the same code for rows:
Code:
  set_text "<tr><td>", Names/Stats, "</td>","<td>", Stat_Name1, "</td>", "<td>", Stat_Name2, "</td>", "<td>", Stat_Name3, "</td><tr>",
  for each user_ID
    set_text "<tr><td>", User_Name, "</td><td>", User_Stat1, "</td><td>", User_Stat2, "</td><td>", User_Stat3, "</td><tr>"
  next user_ID
next row_element


The use of ASP (or equivalent) code to extract the data from a data source (database) would be even easier because you can then do it on the fly!

Totally untested and straight off the top of my head, but some food for thought.

Cheers,
DK





Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!