in reply to Right Number DB
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Right Number DB
by hardburn (Abbot) on Dec 10, 2003 at 21:27 UTC |