oh thee enlightened,
i'm trying to piece this HTML-app together, which generates quite a lot of tables. these tables must eventually be printed on decommissioned, bleached and generally mutilated trees. i kinda have to do this via a nice, inviting "print this table"-link somewhere in the table.
my lack of wisdom manifests itself in the following ways:
my tables are always generated via my sub
printTable(), which gets an (executed) $sth and some formating hints as its arguments. my idea was to make this nice sub re-construct the SQL needed to generate the current table, and pass this information (somehow) to a generic
printTableToPaper.pl script, which would re-format the table, display it as HTML and
document.print() it or pass it to 'html2ps | ps2pdf' or something like that. simply doing this via CSS soesn't work, since i have multiple tables per HTML-page, and sometimes, only parts of the tables are actually shown (whereas the whole table should be printed when that link is clicked).
to cut a long SoPW short: i simply wanted to store
$sth->{'Statement'} and
$sth->{'ParamValues'} somewhere, and pass them to my printing script. but DBD::mysql doesn't seem to support the latter (why? i thought a massivly used module like this one would be very up-to-date.)
so, does anybody have an idea how i could re-construct the SQL that got executed using DBD::mysql?
please?
edited: Fri Dec 20 05:32:54 2002
by jeffa - title truncation (was: mysql and $sth->{'ParamValues'} (or howto ...)
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.