If your database supports rows(), and you aren't interested in portability to other databases, you may find that useful.
my $count = $sth->rows(); if ($count > 1) { # display count } elsif ($count == 1) { # single record stuff } else { # nothing found }
In reply to Re: Right Number DB
by menolly
in thread Right Number DB
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |