Help for this page

Select Code to Download


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