Posted by Jonathan N. Little on 11/11/05 02:04
Martin wrote:
> 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?
>
> Thanks for any suggestions.
Yes, count up your data BEFORE you generate the HTML! In other words
buffer it before you print|echo (whatever scripting language you are
using) the results or ...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|