powerhouse has asked for the wisdom of the Perl Monks concerning the following question:
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...
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
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
Back to
Seekers of Perl Wisdom