Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Rowspan 1

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
I am generating an HTML table from an SQL query with PHP.
One of my table columns contains a picture, the column row is spanned in accordance with however may records come back from the database. I tried giving the hardcoded rowspan a crazy, much higher number of rows that were in the table. It did not error, but is this okay. Many thanks
 
yes it is okay, but not very standard. why not use a php function to get the number of records returned (I think it's mysql_num_rows()) and then just set the rowspan using that number?

ask in the php forum (forum434) if you need more information.



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Many thanks. I have indeed got mysql_num_rows, in a cariable $num, but stuck on syntax to put it in. Just thought I would pop over here to see if there good reason not to over value the rowspan of a table. Have a star and good day. Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top