oops, I'm sorry I thought I put what I WAS doing with it, because of my concern, I guess I put that in the question I asked in the MySQL list...

I added this, just before the MySQL Syntax:
if ($max_recs1 !~ /^(10|20|40|80|120|160)$/) { $html_content .= qq~You have entered an ILLEGAL Number of Results +to post!!~ . br() x 2; search_box(); return; }
Sorry about that :o(

What I'm wondering about is if I can put the $max_recs1 in as a placeholder, in a LIMIT.

Did that make it clearer I hope?


UPDATE: Sorry, nevermind. I guess If I check to make sure it is one of the numbers I offer as a choice, then it don't matter If I make it a placeholder or not, since they cannot put anything but one of the numbers....

thx,
Richard

In reply to Re: security question, mysql, limit, dbi, and placeholders by powerhouse
in thread security question, mysql, limit, dbi, and placeholders by powerhouse

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.