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 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/

 

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

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