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