Ok, here's the situation:
First of all, it's QUITE apparent to me I need to switch to Class:DBI, but for not, DBI will have to do.
Ok, I'm trying to figure out how to retrieve a reply count on a thread, and I know the sql needed, and I know how to do it without HTML::Tenplate.
SQL code:
SELECT COUNT(*) FROM replies WHERE reply_id=? $sth->execute($q->param('id')

This involves a while loop, that which I cannot figure out how to incorporate it into HTML::Template.
Thank you kind, and wise monks, forgive my if this is vague, 3 300m dashes along with a cocktail of other grueling sprints in track tends to dull my question asking abilities.
-dhoss
All posts are spawns of an archaeic and instinctual remnant of pre-neanderthalian neural synapse that, while irrevocably human, remains an anomoly to the common laws of nature.

In reply to Retrieving a message count on a thread using HTML::Template, and DBI. by stonecolddevin

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.