You are here: Re: Use rowspan without knowing how many rows? « HTML « IT news, forums, messages
Re: Use rowspan without knowing how many rows?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация