- or download this
my ($email) = $dbh->quote($CGI->param('email') || undef);
my ($password) = $dbh->quote($CGI->param('password') || undef);
- or download this
my $tmp = <<EOF;
SELECT
...
EOF
my $sth = &return_query($dbh, $tmp);
- or download this
my @row = $sth->fetchrow_array;
...
if (@row) {
$result{userID} = $row[0];
- or download this
if ($@) {
push(@{ $result{error} }, $@);
}
return encode_json(\%result);