Click to See Complete Forum and Search --> : generating a table by column rather than by row


anarchist
09-26-2003, 08:47 AM
I have a page which dynamically generates a table using two sql queries, I can only deal with one at a time
the problem is the table thats generated needs the results of the first query as row headers and the results of the second beside it as the row data in the second column
what I need to know is, is there a way to generate a table column by column rather than the usual row by row method?

the obviouse solutions are to use two tables one beside the other or to set the column headings to javascript variables and then write them to the page, both mothods are fine but not ideal, especially if I could use the way I want

Khalid Ali
09-26-2003, 09:18 AM
how about not using the tables at all?
you can use a combinationof htmlelements(p,div and span) to achieve what you are talking about.

anarchist
09-26-2003, 09:53 AM
using a table seemed the easiest way of making a table
I could use div's to do the same thing, but I cant get my database bit to work at the min so its starting to look like its not going to matter