Pages

Subscribe:

Ads 468x60px

Labels

Wednesday, August 15, 2012

Strange tables

Have a different question to ask? Start New Discussion Reply to this Discussion 14 Hours Ago 0

Hey guys. I'm trying to get an idea on how to code a certain table. The table has 6 cells: 3 columns and 2 rows.
Each cell needs to be filled with information from a MySQL database. The columns are completely even. However, the second row is very uneven depending on how much information is in each cell of the first row. Could anyone give me an outline of how I be able to code this? Thanks.

goody11 Junior Poster 126 posts since Jun 2009 Reputation Points: 8 Solved Threads: 1   13 Hours Ago 0

I'm not sure I understand the problem. Are you talking about creating an HTML table?

If so, you can ensure even columns by explicitly setting a column width. And if you omit a row height, the row will automatically expand to enclose the cell content.

blocblue Posting Pro 582 posts since Jan 2008 Reputation Points: 165 Solved Threads: 100   13 Hours Ago 0

However, the second row is very uneven depending on how much information is in each cell of the first row

How is the second row dependent on the data stored in the first?

Could anyone give me an outline of how I be able to code this?

Definetley. Before we explain anything, we need to understand exactly what you're trying to do. As far as the problem is concerned, you're getting the data from MySQL database and echoing it to your users in a browswer. Is that right? My solution at this stage is to make a static HTML table with all the data you want in it because it is only one small table. Unless, you're trying to do something different.

cheers,

rotten69 Posting Pro in Training 401 posts since May 2011 Reputation Points: 13 Solved Threads: 18   Related Article: Relational tables MySQL/PHP hi there, I'm having trouble with my project, I can't wrap my head around the code. Any help would be greatly appreciated! in a database you have 2 tables. they look like the following.. table: workflow columns: id, title, content_id table: content columns: id, text list (echo) all the entries ... Post:Markdown Syntax: Formatting Help Bold Italic Code Inline Code Link Quote Heading Sub-Heading # List • List Undo Redo Insert Code Snippet (Alt

No comments:

Post a Comment