Help for this page

Select Code to Download


  1. or download this
       
    use strict;
    use CGI;
    ...
    
    $cgi = new CGI;
    %IN = $cgi->Vars; #%IN = (param1 => value1, param2 => value2 , etc..);
    
  2. or download this
    if (defined $IN{location}) {
       $where .= "AND (location = '$IN{location}[0]'";
       for my $i (@{$IN{location}}) { $where .= "$i" };
       $where = "$where)";
    }
    
  3. or download this
    
    delete $IN{somekey};
    ...
    $sql = "$function $tablename ($key_string) values ($value_string)";
    $sth = $dbh->prepare($sql);
    $sth->execute();