in reply to Re: Re: Re: /i regex modifier
in thread /i regex modifier
Can someone make this so it will check from the datbase then$sth = $dbh->prepare("SELECT username FROM users"); $sth->execute; while ( $users = $sth->fetchrow_array ) { if (param("username") =~ /$users/) { error("Username already exists, please make a different one"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: /i regex modifier
by japhy (Canon) on Jul 18, 2002 at 19:56 UTC |