Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Need help with syntax error in CGI script (security hole)

by Ovid (Cardinal)
on Aug 02, 2004 at 01:47 UTC ( #379169=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect(
        'DBI:mysql:*********', 
        '*****', 
    ...
        WHERE partno="$img_name";
    ENDSQL
    $sth->execute;
    
  2. or download this
    my $sth = $dbh->prepare(<<END_SQL);
        UPDATE inventory 
        SET    img = ?, thumb = ? 
        WHERE  partno = ?;
    ENDSQL
    $sth->execute($short_name, $short_tname, $img_name);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2023-09-26 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?