PerlRob has asked for the wisdom of the Perl Monks concerning the following question:
$arrayRef = $dbh->selectrow_arrayref("SELECT password FROM table WHERE + username = '$username'") or die "Error: " . $dbh->errstr;
$sth = $dbh->prepare("SELECT password FROM table WHERE userName = '$us +erName'") or die $dbh->errstr; $result = $sth->execute(); print "There were no rows returned\n" if $result == 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI confusion
by moritz (Cardinal) on Jul 23, 2008 at 07:37 UTC | |
by choroba (Cardinal) on Jun 01, 2017 at 08:45 UTC | |
|
Re: DBI confusion
by mje (Curate) on Jul 23, 2008 at 08:30 UTC | |
|
Re: DBI confusion
by Zen (Deacon) on Jul 23, 2008 at 12:14 UTC | |
|
Re: DBI confusion
by toke (Initiate) on Nov 06, 2012 at 16:14 UTC |