in reply to /i regex modifier
Now, if there's a result, the username existed in the database. And if you want to compare in lowercase, there are SQL utilities to do that as well. Don't use a regex. You're going about this the wrong way.my $sql = q{SELECT username FROM db WHERE username=?}; my $sth = $dbh->prepare($sql); $sth->execute(param("username"));
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: /i regex modifier
by Anonymous Monk on Jul 18, 2002 at 19:39 UTC | |
by japhy (Canon) on Jul 18, 2002 at 19:41 UTC | |
by Anonymous Monk on Jul 18, 2002 at 19:47 UTC | |
by japhy (Canon) on Jul 18, 2002 at 19:56 UTC |