Help for this page

Select Code to Download


  1. or download this
    my $script = param('select') or ...;
    ...
    $dbh->do("UPDATE guestlog SET script='$script' WHERE host='$host'");
    
  2. or download this
    my $script = param('select') or ...;
    ...
    $dbh->do("UPDATE guestlog SET script=? WHERE host=?", undef, $script, 
    +$host);
    
  3. or download this
    $sth = $dbh->prepare( "SELECT * FROM guestlog WHERE host='$host'");
    $sth->execute();
    
  4. or download this
    $sth = $dbh->prepare("SELECT * FROM guestlog WHERE host=?");
    $sth->execute($host);