I was wondering if there is a less verbose, and perhaps more efficient way of getting a row count. Processing the results of the query is completely unnecessary to this script, so it seems kind of silly to have to loop through all of them. Thanks in advance.$sth = $dbh->prepare("SELECT name FROM people WHERE l_name LIKE 'B%'") +; $sth->execute(); while ( $name = $sth->fetchrow_array() ) { $count++; }
Amel - f.k.a. - kel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |