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 ...)