Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to get only changed parameter names from CGI script on form submit?

by muba (Priest)
on Nov 24, 2015 at 00:41 UTC ( [id://1148456]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # 1
    
    ...
        my $sql = sprintf("UPDATE mytable SET %s = ? WHERE id = ?", $p)
        $dbh->do($sql, undef, param($p), $id);
    }
    
  2. or download this
    # 2
    
    ...
    
    # And then hit the database with that UPDATE statement just once.
    $dbh->do($sql, undef, bind);
    

Log In?
Username:
Password:

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

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

    No recent polls found