|Problems? Is your data what you think it is?|
Printing Tables...by powerhouse (Friar)
|on Mar 06, 2003 at 22:09 UTC||Need Help??|
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.