Hello

I have a code where it prints out a list of 1000+ results from a mysql database. (select sessions from data_sessions) Keep in mind that I would need ALL of these results printed daily. (basically I goto the script which displays all 1000+ results, then click print from browser)

Since sometimes it can return more then 1000 results, I'm interested in splitting them up, 100 per page.

As of now the program displays ALL results onto one page, that way I can just print from browser and have all the results printed.

Now my questions is if I were to split up the results 100 per page, then is there anyway I can have a "Print All Pages" link / feature that is able to print all 100 results? That way I do not have to go through each single page and click print. If not then I don't think its worth me ediiting my code around due to the inconvenience it will bring me.

Thank you,

perleager

In reply to Printing out all pages by perleager

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.