Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Avoid SQL injection

by Corion (Patriarch)
on Jan 20, 2023 at 11:49 UTC ( [id://11149722]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub sqlSingleRow( $sql, @placeholders ) {
        my $sth = $dbh->prepare( $sql );
    ...
        $c->finish();
        return @r;
    }
    
  2. or download this
        my $sql_cat = <<'SQL';
            select ref_categorie
    ...
    SQL
    
        my ($cat) = sqlSingleRow($sql_cat, $category, $lang );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149722]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found