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