Posted by Hywel Jenkins on 11/11/05 19:29
In article <3ig7n11r45a7pmdduoeoq02i25g45e2nh8@4ax.com>,
martinvalley@comcast.net says...
> Is there any way to combine table cells (using rowspan)in multiple
> rows without knowing before hand how many rows will be involved?
>
> I have a script that is adding rows to a table (stepping thru an SQL
> query result set). The data in the first cell of each row may be
> duplicated across 1 to 5 rows. But, when I generate the first row, I
> don't know if the next row(s) are a duplicate or not.
>
> Is there any way I can just "add on" or "expand" the rowspan for each
> row as needed?
You must know how many rows are in your record set before you start
looping through them, surely? Seems like you've got multiple queries -
run them both before you start outputting the HTML.
--
Hywel
http://kibo.org.uk/
[Back to original message]
|