Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Avoid SQL injection

by *alexandre* (Beadle)
on Jan 20, 2023 at 11:15 UTC ( #11149720=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    sub doSearch {
    ...
        
        my  ($d)= $db->sqlSelect("count(article.nom)", $from, "article.nom
    + like '%$article%' AND ref_statut = '3' $add");
        my $total = $d;
    
  2. or download this
    
    </sub sqlSelect {
    ...
        $c->finish();
        return @r;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-09-22 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?