Hello, Fellow Monks! I have been racking my brain, trying to do something, but cannot get it figured out(in my head). Can you please offer me some advise...
|
header cell1
|
header cell2
|
|
content cell1
|
content cell2
|
I am pulling data out of a MySQL database, and in a while statement I'm putting the information in a table.
The problem is that, as you know, in the WHILE statment, I only have 1 "database row" to work with at a time and the format of a table requires 2 cells side by side:
<td></td><td></td>Before the new row. Of course you already know that.
How can I get that information to "content cell1", without knowing the 'header' for "header cell2"?
In other words, if I am on record 1, and I need the header(name) in "header cell1" and the content for "content cell1" but before I can get to "content cell1", I have to create "header cell2". Do you see what I'm trying to do? I often cannot explain things the way I mean them, I'm told by my wife ;o)
If you don't understand, please reply back, and I'll try to explain it better.
thx,
Richard
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.